hsinspect-0.0.14: Inspect Haskell source files.

Safe HaskellNone
LanguageHaskell2010

HsInspect.TypeParser

Documentation

data Type Source #

Constructors

ProductType Text [Text] Text [Text]

^ type tparams cons [param types]

RecordType Text [Text] Text [(Text, Text)]

^ type tparams cons [(fieldname, param type)]

SumType Text [Text] [(Text, [Text])]

^ type tparams [(cons, param types)] (no records)

Instances
Eq Type Source # 
Instance details

Defined in HsInspect.TypeParser

Methods

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

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

Show Type Source # 
Instance details

Defined in HsInspect.TypeParser

Methods

showsPrec :: Int -> Type -> ShowS #

show :: Type -> String #

showList :: [Type] -> ShowS #

data Pos Source #

Constructors

Pos Int Int 
Instances
Eq Pos Source # 
Instance details

Defined in HsInspect.TypeParser

Methods

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

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

Ord Pos Source # 
Instance details

Defined in HsInspect.TypeParser

Methods

compare :: Pos -> Pos -> Ordering #

(<) :: Pos -> Pos -> Bool #

(<=) :: Pos -> Pos -> Bool #

(>) :: Pos -> Pos -> Bool #

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

max :: Pos -> Pos -> Pos #

min :: Pos -> Pos -> Pos #

Show Pos Source # 
Instance details

Defined in HsInspect.TypeParser

Methods

showsPrec :: Int -> Pos -> ShowS #

show :: Pos -> String #

showList :: [Pos] -> ShowS #

data Comment Source #

Constructors

Comment Text Pos Pos 
Instances
Eq Comment Source # 
Instance details

Defined in HsInspect.TypeParser

Methods

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

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

Show Comment Source # 
Instance details

Defined in HsInspect.TypeParser