Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype Chunked a = Chunked {
- getChunked :: a
- data Extension a
- data FutureExtensionTail
- class ExtensionDefault t where
- type FutureExtension = Extension FutureExtensionTail
- newtype ModDir s a = ModDir [(s, a)]
- i'ModDir :: Iso [(s, a)] [(s', a')] (ModDir s a) (ModDir s' a')
- type Module a = Free (ModDir String) a
- type Mountain = Module FileLibrary
- type Context = Module (GlobalID, LeafExpr GlobalID)
- context :: Mountain -> Context
- localContext :: (?mountain :: Mountain) => Context
- atM :: Eq s => s -> a -> Traversal' (ModDir s a) a
- atMs :: Eq s => [s] -> Traversal' (Free (ModDir s) a) (Free (ModDir s) a)
- fromPList :: Eq s => [([s], Free (ModDir s) a)] -> Free (ModDir s) a
- data ModLeaf s a
- type SourcePos = (Int, Int, Int)
- data SourceRange
- undefLeaf :: String -> LeafExpr GlobalID
- undefSymLeaf :: String -> Maybe LibraryID -> LeafExpr GlobalID
- leafVal :: Lens a b (ModLeaf s a) (ModLeaf s b)
- leafDoc :: Lens' (ModLeaf s a) Documentation
- leafPos :: Lens' (ModLeaf s a) SourceRange
- leafType :: Lens' (ModLeaf s a) (Type s)
- leafStrictness :: Lens' (ModLeaf s a) (Strictness s)
- leafIsFamily :: Lens' (ModLeaf s a) Bool
- data GlobalID = GlobalID String (Maybe (String, LibraryID))
- isLibData :: LibraryID -> Bytes -> Bool
- newtype Metadata = Metadata (Forest (Map String) String)
- data Library
- metadata :: Lens' Library Metadata
- imports :: Lens' Library Context
- exports :: Lens' Library Context
- symbols :: Lens' Library (Map String (LeafExpr GlobalID))
- implicits :: Lens' Library (InstanceMap GlobalID (Maybe LibraryID, LeafExpr GlobalID))
- addImport :: Context -> Library -> Library
- addExport :: Module String -> Library -> Library
- setExports :: Module String -> Library -> Library
- defSymbol :: Semantic e String (String, Maybe (NameExpr GlobalID)) => String -> SourceRange -> Maybe (Type GlobalID) -> Bool -> e -> Library -> Library
- libSymbol :: Library -> GlobalID -> Maybe (LeafExpr GlobalID)
- exprIn :: Semantic e String (String, Maybe (NameExpr GlobalID)) => Library -> e -> NameExpr GlobalID
- optExprIn :: Semantic e String (String, Maybe (NameExpr GlobalID)) => Library -> e -> NameExpr GlobalID
- builtinsLib :: FileLibrary
- type LeafExpr s = ModLeaf s (NameExpr s)
- data DocNode a = DocTag String [(String, String)] [a]
- type Documentation = Free DocNode String
- docNodeAttrs :: Lens' (DocNode a) [(String, String)]
- docNodeSubs :: Lens [a] [b] (DocNode a) (DocNode b)
- descSymbol :: String -> Documentation -> Library -> Library
- docAtom :: (ParseStream s, StreamChar s ~ Char, Monad m) => ParserT s m Documentation
- docLine :: (ParseStream s, StreamChar s ~ Char, Monad m) => String -> [(String, String)] -> ParserT s m Documentation
- mkDoc :: String -> String -> Documentation
- data FileLibrary
- flLibrary :: Lens' FileLibrary Library
- flID :: Lens' FileLibrary LibraryID
- flBytes :: Lens' FileLibrary Bytes
- flFromSource :: Lens' FileLibrary Bool
- flSource :: Lens' FileLibrary (Maybe String)
- rawLibrary :: Bool -> Library -> Bytes -> Maybe String -> FileLibrary
- fileLibrary :: Library -> Maybe String -> FileLibrary
- type Template = Documentation
- defaultTemplate :: Template
- showTemplate :: Terminal trm => trm -> Style -> DocPatterns -> Metadata -> Template -> Maybe String
- showDummyTemplate :: Metadata -> Template -> Maybe String
- findLib :: LibraryID -> Maybe FileLibrary
- findSym :: GlobalID -> Maybe (LeafExpr GlobalID)
- availableLibs :: IO [(LibraryID, Metadata)]
- libraryVCS :: IORef VCSBackend
Modules
Chunked data and Future Extensions
Chunked | |
|
Serializable Bytes a => Serializable Bytes (Extension a) Source # | |
(ExtensionDefault a, Format Bytes a) => Format Bytes (Extension a) Source # | |
ExtensionDefault a => ExtensionDefault (Extension a) Source # | |
data FutureExtensionTail Source #
class ExtensionDefault t where Source #
extensionDefault :: t Source #
ExtensionDefault FutureExtensionTail Source # | |
ExtensionDefault (Maybe a) Source # | |
ExtensionDefault a => ExtensionDefault (Extension a) Source # | |
(ExtensionDefault a, ExtensionDefault b) => ExtensionDefault (a, b) Source # | |
Nodes
ModDir [(s, a)] |
(Serializable Bytes s, Serializable Bytes a) => Serializable Bytes (Free (ModDir s) a) Source # | |
(Serializable Bytes s, Serializable Bytes a) => Serializable Bytes (ModDir s a) Source # | |
(Format Bytes s, Format Bytes a) => Format Bytes (Free (ModDir s) a) Source # | |
(Format Bytes s, Format Bytes a) => Format Bytes (ModDir s a) Source # | |
Functor (ModDir s) Source # | |
Ord s => SemiApplicative (Zip (ModDir s)) Source # | |
Foldable (ModDir s) Source # | |
Traversable (ModDir s) Source # | |
Documented a => Documented (Module a) Source # | |
(Show a, Show s) => Show (ModDir s a) Source # | |
Semigroup (ModDir s a) Source # | |
Monoid (ModDir s a) Source # | |
type Mountain = Module FileLibrary Source #
localContext :: (?mountain :: Mountain) => Context Source #
Leaves
(Identifier s, Identifier s') => HasIdents s s' (ModLeaf s a) (ModLeaf s' a) Source # | |
(Identifier s, Serializable Bytes s, Serializable Bytes a) => Serializable Bytes (ModLeaf s a) Source # | |
(Identifier s, Format Bytes s, Format Bytes a) => Format Bytes (ModLeaf s a) Source # | |
Functor (ModLeaf s) Source # | |
Foldable (ModLeaf s) Source # | |
Traversable (ModLeaf s) Source # | |
Generic (ModLeaf s a) Source # | |
type Rep (ModLeaf s a) Source # | |
data SourceRange Source #
leafStrictness :: Lens' (ModLeaf s a) (Strictness s) Source #
Libraries
defSymbol :: Semantic e String (String, Maybe (NameExpr GlobalID)) => String -> SourceRange -> Maybe (Type GlobalID) -> Bool -> e -> Library -> Library Source #
exprIn :: Semantic e String (String, Maybe (NameExpr GlobalID)) => Library -> e -> NameExpr GlobalID Source #
optExprIn :: Semantic e String (String, Maybe (NameExpr GlobalID)) => Library -> e -> NameExpr GlobalID Source #
Documentation
A documentation node (similar to a HTML node, but simpler)
Functor DocNode Source # | |
Foldable DocNode Source # | |
Traversable DocNode Source # | |
Serializable Bytes a => Serializable Bytes (DocNode a) Source # | |
Format Bytes a => Format Bytes (DocNode a) Source # | |
Serializable Bytes a => Serializable Bytes (Free DocNode a) Source # | |
Format Bytes a => Format Bytes (Free DocNode a) Source # | |
Eq a => Eq (DocNode a) Source # | |
Ord a => Ord (DocNode a) Source # | |
Show a => Show (DocNode a) Source # | |
Generic (DocNode a) Source # | |
Documented a => Documented (Free DocNode a) Source # | |
type Rep (DocNode a) Source # | |
descSymbol :: String -> Documentation -> Library -> Library Source #
docAtom :: (ParseStream s, StreamChar s ~ Char, Monad m) => ParserT s m Documentation Source #
docLine :: (ParseStream s, StreamChar s ~ Char, Monad m) => String -> [(String, String)] -> ParserT s m Documentation Source #
Files
data FileLibrary Source #
A library with cached versions of its library ID and serialized self
rawLibrary :: Bool -> Library -> Bytes -> Maybe String -> FileLibrary Source #
fileLibrary :: Library -> Maybe String -> FileLibrary Source #
Repositories
type Template = Documentation Source #
showTemplate :: Terminal trm => trm -> Style -> DocPatterns -> Metadata -> Template -> Maybe String Source #