monopati-0.1.1: Well-typed paths

Safe HaskellSafe
LanguageHaskell2010

System.Monopati.Posix

Synopsis

Documentation

data Points Source #

Constructors

Directory 
File 

data Origin Source #

Constructors

Root 
Home 
Vague 

data To Source #

type Path = Cofree Maybe String Source #

newtype Outline (origin :: Origin) (points :: Points) Source #

The internal type of path representation

Constructors

Outline 

Fields

type family Absolute (path :: Type) (to :: Type) (points :: Points) :: Type where ... Source #

Equations

Absolute Path To points = Outline Root points 

type family Homeward (path :: Type) (to :: Type) (points :: Points) :: Type where ... Source #

Equations

Homeward Path To points = Outline Home points 

type family Relative (path :: Type) (to :: Type) (points :: Points) :: Type where ... Source #

Equations

Relative Path To points = Outline Vague points 

part :: String -> Outline origin points Source #

(<~/>) :: Absolute Path To points -> Homeward Path To points -> Absolute Path To points Source #