1module Elm.Compiler.Imports (defaults) where
3import qualified AST.Module as Module
4import qualified AST.Variable as Var
9(==>) :: a -> b -> (a,b)
13defaults :: [Module.DefaultImport]
15 [ ["Basics"] ==> Module.ImportMethod Nothing Var.openListing
16 , ["Debug"] ==> Module.ImportMethod Nothing Var.closedListing
17 , ["List"] ==> exposing [Var.Value "::"]
18 , ["Maybe"] ==> exposing [Var.Union "Maybe" Var.openListing]
19 , ["Result"] ==> exposing [Var.Union "Result" Var.openListing]
20 , ["Platform"] ==> exposing [closedType "Program"]
21 , ["Platform","Cmd"] ==> named "Cmd" [closedType "Cmd", Var.Value "!"]
22 , ["Platform","Sub"] ==> named "Sub" [closedType "Sub"]
26exposing :: [Var.Value] -> Module.ImportMethod
28 Module.ImportMethod Nothing (Var.listing vars)
31closedType :: String -> Var.Value
33 Var.Union name Var.closedListing
36named :: String -> [Var.Value] -> Module.ImportMethod
38 Module.ImportMethod (Just name) (Var.listing vars)
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