Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data NsT
- type Name = Text
- newtype NameTy = NameTy Text
- type NameConst = NameTy
- type NameFam = NameTy
- class NameOf a where
- class NameTyOf c where
- data Mod a = Mod PathMod a
- type PathMod = [NameMod]
- newtype NameMod = NameMod Name
- newtype Imports name = Imports (Map PathMod (MapFixity (Map name PathMod)))
- lookupImports :: Ord name => Fixy p i q a -> Mod name -> Imports name -> Maybe PathMod
- revlookupImports :: Ord name => Fixy p i q a -> Mod name -> Imports name -> Maybe PathMod
- class ImportTypes ts where
- data Fixy p i q a where
- FixyPrefix :: Fixy p i q p
- FixyInfix :: Fixy p i q i
- FixyPostfix :: Fixy p i q q
- fixyOfFixity :: Fixity -> Fixy a a a a
- class FixityOf c where
- newtype FixyA = FixyA (forall a. Fixy a a a a)
- data WithFixity a = WithFixity a Fixity
- withInfix :: a -> Infix -> WithFixity a
- withInfixR :: a -> Precedence -> WithFixity a
- withInfixL :: a -> Precedence -> WithFixity a
- withInfixN :: a -> Precedence -> WithFixity a
- withInfixB :: a -> (Side, Precedence) -> WithFixity a
- withPrefix :: a -> Precedence -> WithFixity a
- withPostfix :: a -> Precedence -> WithFixity a
- data ByFixity p i q = ByFixity {}
- getByFixity :: Fixy p i q a -> MapFixity b -> b
- selectByFixity :: Fixy p i q a -> ByFixity p i q -> a
- type MapFixity a = ByFixity a a a
- mapMapFixity :: (a -> b) -> MapFixity a -> MapFixity b
Type NsT
Type Name
Type NameTy
Name
of a Type
.
Type NameConst
Type NameFam
Class NameOf
Class NameTyOf
class NameTyOf c where Source #
Return the NameTy
of something.
nameTyOf :: proxy c -> Mod NameTy Source #
nameTyOf :: Typeable c => proxy c -> Mod NameTy Source #
isNameTyOp :: proxy c -> Bool Source #
isNameTyOp :: Typeable c => proxy c -> Bool Source #
NameTyOf (Constraint -> Type -> *) (#>) Source # | |
NameTyOf (Constraint -> Constraint -> Constraint) (#) Source # | |
NameTyOf (k -> k -> Constraint) ((#~) k) Source # | |
Type Mod
PathMod
of something.
Type PathMod
Type NameMod
Name
of Module
.
Type Imports
Class ImportTypes
class ImportTypes ts where Source #
ImportTypes [k] ([] k) Source # | |
(NameTyOf k t, FixityOf k t, ImportTypes [*] ts) => ImportTypes [*] ((:) * (Proxy k t) ts) Source # | |
Type Fixy
data Fixy p i q a where Source #
FixyPrefix :: Fixy p i q p | |
FixyInfix :: Fixy p i q i | |
FixyPostfix :: Fixy p i q q |
fixyOfFixity :: Fixity -> Fixy a a a a Source #
Class FixityOf
class FixityOf c where Source #
Return the Fixity
of something.
FixityOf Type c Source # | |
FixityOf Constraint c Source # | |
FixityOf (Constraint -> Type -> *) (#>) Source # | |
FixityOf (Constraint -> Constraint -> Constraint) (#) Source # | |
FixityOf (k -> k -> Constraint) ((#~) k) Source # | |
Type FixyA
Like Fixy
, but when all choices have the same type.
Type WithFixity
data WithFixity a Source #
Functor WithFixity Source # | |
Eq a => Eq (WithFixity a) Source # | |
Show a => Show (WithFixity a) Source # | |
IsString a => IsString (WithFixity a) Source # | |
withInfix :: a -> Infix -> WithFixity a Source #
withInfixR :: a -> Precedence -> WithFixity a Source #
withInfixL :: a -> Precedence -> WithFixity a Source #
withInfixN :: a -> Precedence -> WithFixity a Source #
withInfixB :: a -> (Side, Precedence) -> WithFixity a Source #
withPrefix :: a -> Precedence -> WithFixity a Source #
withPostfix :: a -> Precedence -> WithFixity a Source #
Type ByFixity
Fixity namespace.
getByFixity :: Fixy p i q a -> MapFixity b -> b Source #
selectByFixity :: Fixy p i q a -> ByFixity p i q -> a Source #
Type MapFixity
mapMapFixity :: (a -> b) -> MapFixity a -> MapFixity b Source #