Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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 #
Context referenced by commands that contain an index
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
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 |
newtype HackageUrl Source #
moreInfoText :: Doc Source #