Safe Haskell | None |
---|---|
Language | Haskell2010 |
Support functions to call common live coding functionalities like launching and reloading
from a ghci
or cabal repl
session.
You typically don't need to import this module in your code,
but you should load it in your interactive session,
ideally by copying the file `essence-of-live-coding/.ghci` to your project,
adjusting it to your needs and launching cabal repl
.
Synopsis
- livelaunch :: Monad m => p -> m String
- livestop :: Monad m => p -> m [Char]
- load :: Launchable m => LiveProgram m -> IO (LaunchedProgram m)
- save :: Launchable m => LaunchedProgram m -> IO ()
- liveinit :: Monad m => p -> m String
- livereload :: Monad m => p -> m String
- livestep :: Monad m => p -> m [Char]
Documentation
livelaunch :: Monad m => p -> m String Source #
load :: Launchable m => LiveProgram m -> IO (LaunchedProgram m) Source #
Load a LiveProgram
of a given type from the store.
The value of the given LiveProgram
is not used,
it only serves as a proxy for m.
save :: Launchable m => LaunchedProgram m -> IO () Source #
Save a LiveProgram
to the store.
livereload :: Monad m => p -> m String Source #