implicit-hie-0.1.2.3: Auto generate hie-bios cradles & hie.yaml
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hie.Cabal.Parser

Synopsis

Documentation

type Name = Text Source #

type Path = Text Source #

data Package Source #

Constructors

Package Name [Component] 

Instances

Instances details
Eq Package Source # 
Instance details

Defined in Hie.Cabal.Parser

Methods

(==) :: Package -> Package -> Bool #

(/=) :: Package -> Package -> Bool #

Ord Package Source # 
Instance details

Defined in Hie.Cabal.Parser

Show Package Source # 
Instance details

Defined in Hie.Cabal.Parser

data CompType Source #

Constructors

Lib 
Exe 
Test 
Bench 

Instances

Instances details
Eq CompType Source # 
Instance details

Defined in Hie.Cabal.Parser

Ord CompType Source # 
Instance details

Defined in Hie.Cabal.Parser

Show CompType Source # 
Instance details

Defined in Hie.Cabal.Parser

data Component Source #

Constructors

Comp CompType Name Path 

Instances

Instances details
Eq Component Source # 
Instance details

Defined in Hie.Cabal.Parser

Ord Component Source # 
Instance details

Defined in Hie.Cabal.Parser

Show Component Source # 
Instance details

Defined in Hie.Cabal.Parser

optSkipToNextLine :: Indent -> Parser () Source #

Skip spaces and if end of line is reached, skip it as well and require that next one starts with indent.

Used for parsing fields.

parseList :: Indent -> Parser [Text] Source #

Comma or space separated list, with optional new lines.

pathMain :: Indent -> [Text] -> Text -> [Text] -> [Text] -> Parser [Text] Source #

(<//>) :: Text -> Text -> Text infixr 5 Source #

field :: Indent -> Text -> (Indent -> Parser a) -> Parser a Source #

indent :: Indent -> Parser Int Source #

Skip at least n spaces