1{-# OPTIONS_GHC -Wall -fno-warn-unused-do-bind #-}
2{-# LANGUAGE OverloadedStrings #-}
10import qualified Data.Text as Text
11import Data.Text (Text)
14import qualified Parse.Expression as Expr
15import qualified Parse.Pattern as Pattern
17import qualified AST.Pattern as P
18import qualified Reporting.Annotation as A
28 | Def (Maybe String) Text
39parseEntry :: String -> Entry
45 case run (entryParser source) source of
53entryParser :: Text -> Parser Entry
58 name <- qualifiedCapVar
59 return (Import (Text.unpack name) source)
61 , do oneOf (map keyword ["infix","infixl","infixr"])
75 return (Type (Text.unpack name) source)
77 , do root <- Expr.rootPattern =<< getPosition
85 return (Def (Just (Text.unpack name)) source)
90 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