Skip to content

Instantly share code, notes, and snippets.

@DanielG
Created September 11, 2014 01:05
Show Gist options
  • Save DanielG/16a8b25a76ed912dad2a to your computer and use it in GitHub Desktop.
Save DanielG/16a8b25a76ed912dad2a to your computer and use it in GitHub Desktop.
data ReqType = List
| Lang
| Flag
| Browse
| Check
| Expand
| Debug
| Info
| Type
| Split
| Sig
| Refine
| Auto
| Find
| Lint
| Root
| Doc
| DumpSym
| Boot
| Version
data Request a where
BrowseReq { rModule :: ModuleName
rDetailed :: Bool
rAllBindings :: Bool
-- ^ Instead of only returning exported bindings return all top
-- level bindings in the browsed module. (TODO: re-exported
-- stuff too?)
} :: Request Browse
instance deriving Show (Request a)
data Response a where
BrowseRes [Symbol] :: Response Browse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment