1{-# OPTIONS_GHC -Wall -fno-warn-unused-do-bind #-}
2{-# LANGUAGE OverloadedStrings #-}
10import qualified Data.ByteString.UTF8 as Utf8
11import qualified Data.Text as Text
12import Data.Text (Text)
14import qualified AST.Source as Src
15import qualified Elm.Name as N
16import Parse.Primitives
17import qualified Parse.Primitives.Keyword as Keyword
18import qualified Parse.Primitives.Symbol as Symbol
19import qualified Parse.Primitives.Variable as Var
20import qualified Parse.Pattern as Pattern
21import qualified Reporting.Annotation as A
31 | Def (Maybe N.Name) Text
41parseEntry :: String -> Entry
47 case run (entryParser source) (Utf8.fromString rawEntry) of
55entryParser :: Text -> Parser Entry
60 name <- Var.moduleName
61 return (Import name source)
74 return (Type name source)
76 , do root <- Pattern.term
78 case A.toValue root of
84 return (Def (Just name) source)
89 return (Def Nothing source)
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