1{-# OPTIONS_GHC -Wall #-}
11import Control.Monad (liftM4)
13import qualified Data.Map as Map
15import qualified AST.Expression.Canonical as Canonical
16import qualified AST.Module.Name as ModuleName
17import qualified AST.Type as Type
18import qualified Elm.Name as N
26 Map.Map ModuleName.Canonical Interface
35 { _types :: Map.Map N.Name Type.Canonical
36 , _unions :: Map.Map N.Name Canonical.Union
37 , _aliases :: Map.Map N.Name Canonical.Alias
38 , _binops :: Map.Map N.Name Canonical.Binop
46fromModule :: Canonical.Module -> Interface
47fromModule (Canonical.Module _ _ _ _ unions aliases binops _) =
49 { _types = error "TODO types"
60privatize :: Interface -> Maybe Interface
61privatize (Interface _ unions aliases _) =
62 if Map.null unions && Map.null aliases then
78instance Binary Interface where
80 liftM4 Interface get get get get
82 put (Interface a b c d) =
83 put a >> put b >> put c >> put d
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list