| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Docs.CLI.Evaluate
Synopsis
- interactive :: M ()
- evaluate :: String -> M ()
- evaluateCmd :: Cmd -> M ()
- data ShellState = ShellState {}
- data Context
- = ContextEmpty
- | ContextSearch String [TargetGroup]
- | ContextModule Module
- | ContextPackage Package
- data Cmd
- data Selection
- = SelectContext
- | SelectByIndex Index
- | SelectByPrefix String
- | Search String
- data View
- newtype HackageUrl = HackageUrl Url
- newtype HoogleUrl = HoogleUrl Url
- runCLI :: ShellState -> M a -> IO (Either String a)
- defaultHoogleUrl :: HoogleUrl
- defaultHackageUrl :: HackageUrl
- moreInfoText :: Doc
Documentation
interactive :: M () Source #
evaluateCmd :: Cmd -> M () Source #
data ShellState Source #
Constructors
| ShellState | |
Context referenced by commands that contain an index
Constructors
| ContextEmpty | Nothing selected |
| ContextSearch String [TargetGroup] | within search results |
| ContextModule Module | looking at module docs |
| ContextPackage Package | looking at a a package's modules |
Commands we accept
Constructors
| ViewAny View Selection | by default we do a Hoogle search or view/index the current context |
| ViewDeclarationSource Selection | |
| ViewDeclaration Selection | |
| ViewModule View Selection | |
| ViewPackage View Selection | |
| Help | |
| Quit |
Constructors
| SelectContext | |
| SelectByIndex Index | |
| SelectByPrefix String | |
| Search String |
Constructors
| Interface | |
| Documentation |
newtype HackageUrl Source #
Constructors
| HackageUrl Url |
moreInfoText :: Doc Source #