1module Metadata.Libraries (libraries, addPrelude) where
3import Control.Applicative ((<$>),(<*>))
4import qualified Data.Map as Map
5import Data.List (inits)
7import Metadata.Load as Load
8import SourceSyntax.Module
10addPrelude :: Module t v -> Module t v
11addPrelude (Module name exs ims stmts) = Module name exs (customIms ++ ims) stmts
12 where customIms = concatMap addModule prelude
14 addModule (n, method) = case lookup n ims of
15 Nothing -> [(n, method)]
16 Just (As m) -> [(n, method)]
19prelude = text : map (\n -> (n, Hiding [])) modules
21 text = ("Text", Hiding ["link", "color", "height"])
22 modules = [ "Prelude", "Signal", "List", "Maybe", "Time"
23 , "Graphics.Element", "Color", "Graphics.Collage" ]
25libraries :: Map.Map String (Map.Map String String)
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