Copyright | (c) Edward Kmett 2011 |
---|---|
License | BSD3 |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | experimental |
Portability | non-portable (DeriveDataTypeable) |
Safe Haskell | None |
Language | Haskell2010 |
- data Global = Global !ByteString !Fixity !ModuleName !Text
- class AsGlobal t where
- class HasGlobal t where
- data Assoc
- data Fixity
- _Fixity :: Prism' Word8 Fixity
- unpackFixity :: Monad m => Word8 -> m Fixity
- packFixity :: Fixity -> Word8
- glob :: AsGlobal t => Fixity -> ModuleName -> Text -> t
Globals
A Global
is a full qualified top level name.
NB: You should construct these with global
and only use the constructor for pattern matching.
Global !ByteString !Fixity !ModuleName !Text |
Nothing
Fixity
The associativity of an infix identifier
The fixity of an identifier
unpackFixity :: Monad m => Word8 -> m Fixity Source
packFixity :: Fixity -> Word8 Source