Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data CurlyPlex = CurlyPlex {
- _mounts :: [([String], InputSource)]
- _targets :: [Target]
- _mountainCache :: IORef (Mountain, [Mountain -> IO ()])
- _jitContext :: JITContext GlobalID
- mounts :: Lens' CurlyPlex [([String], InputSource)]
- targets :: Lens' CurlyPlex [Target]
- mountainCache :: Lens' CurlyPlex (IORef (Mountain, [Mountain -> IO ()]))
- jitContext :: Lens' CurlyPlex (JITContext GlobalID)
- newCurlyPlex :: IO CurlyPlex
- data CurlyOpt
- = Mount [String] InputSource
- | Target Target
- | Flag String
- | FlagDescription String String
- | Conditional (Map String [String]) (Set String) CurlyCondOpt
- newtype CurlyCondOpt = CurlyCondOpt (DocParams -> CurlyOpt)
- data InputSource
- data Target
- = Help
- | Version
- | Interactive
- | Execute String
- | RunFile FilePath
- | Goody FilePath
- | SetPrelude String
- | AddPrelude String
- | SetBanner String
- | AddBanner String
- | SetServer (Maybe (InstanceName, HostName, PortNumber))
- | SetInstance InstanceName
- | ServeInstance
- | ListInstances
- | Echo String
- | Translate FilePath System [String]
- t'Mount :: Traversal' CurlyOpt ([String], InputSource)
- t'Target :: Traversal' CurlyOpt Target
- t'Source :: Traversal' InputSource ([String], String, String)
- t'Help :: Traversal' Target ()
- t'setting :: Traversal' Target ()
- targetFilepaths :: Traversal' Target String
- readServer :: ((~#) * * (StreamChar t1) Char, ParseStream t1, Num t) => t1 -> Maybe (t1, [Char], t)
- showOpts :: [OptDescr t] -> String
- data TargetParams
- confServer :: Lens' TargetParams (Maybe (String, String, PortNumber))
- confPrelude :: Lens' TargetParams [String]
- confBanner :: Lens' TargetParams String
- confInstance :: Lens' TargetParams String
- confThreads :: Lens' TargetParams (Maybe (ThreadId, ThreadId, IORef (Int, Map Int ThreadId)))
- defaultConf :: TargetParams
- getConf :: (?targetParams :: TargetParams) => Lens' TargetParams a -> a
- withPrelude :: (?targetParams :: TargetParams) => String -> String
- curlyOpts :: [OptDescr CurlyOpt]
- packageID :: Template -> IO LibraryID
- packageSearch :: (ParseStream s, Monad m, StreamChar s ~ Char, MonadParser s m p) => p ((String, Maybe String, Maybe String), Template)
- inputSource :: Monad m => FilePath -> ParserT String m ([String], InputSource)
- curlyFileName :: [Char] -> (Int, [Char])
- noCurlySuf :: FilePath -> Maybe FilePath
- visible :: (MonadParser s m p, ParseStream s, Monad m, StreamChar s ~ Char) => [Char] -> p String
- symPath :: (MonadParser s m p, ParseStream s, Monad m, StreamChar s ~ Char) => String -> p [String]
- showSymPath :: [String] -> String
The global mode of operation
CurlyPlex | |
|
Inputs and targets
newtype CurlyCondOpt Source #
data InputSource Source #
Help | |
Version | |
Interactive | |
Execute String | |
RunFile FilePath | |
Goody FilePath | |
SetPrelude String | |
AddPrelude String | |
SetBanner String | |
AddBanner String | |
SetServer (Maybe (InstanceName, HostName, PortNumber)) | |
SetInstance InstanceName | |
ServeInstance | |
ListInstances | |
Echo String | |
Translate FilePath System [String] |
t'Mount :: Traversal' CurlyOpt ([String], InputSource) Source #
t'Source :: Traversal' InputSource ([String], String, String) Source #
t'Help :: Traversal' Target () Source #
t'setting :: Traversal' Target () Source #
readServer :: ((~#) * * (StreamChar t1) Char, ParseStream t1, Num t) => t1 -> Maybe (t1, [Char], t) Source #
Per-target threaded configuration
data TargetParams Source #
confServer :: Lens' TargetParams (Maybe (String, String, PortNumber)) Source #
confThreads :: Lens' TargetParams (Maybe (ThreadId, ThreadId, IORef (Int, Map Int ThreadId))) Source #
getConf :: (?targetParams :: TargetParams) => Lens' TargetParams a -> a Source #
withPrelude :: (?targetParams :: TargetParams) => String -> String Source #
Misc
packageSearch :: (ParseStream s, Monad m, StreamChar s ~ Char, MonadParser s m p) => p ((String, Maybe String, Maybe String), Template) Source #
inputSource :: Monad m => FilePath -> ParserT String m ([String], InputSource) Source #
noCurlySuf :: FilePath -> Maybe FilePath #
visible :: (MonadParser s m p, ParseStream s, Monad m, StreamChar s ~ Char) => [Char] -> p String Source #
symPath :: (MonadParser s m p, ParseStream s, Monad m, StreamChar s ~ Char) => String -> p [String] Source #
showSymPath :: [String] -> String Source #