1{-# OPTIONS_GHC -Wall #-}
2{-# LANGUAGE OverloadedStrings #-}
5 , basics, maybe, list, array
6 , jsonDecode, jsonEncode
9 , isKernel, getKernel, canonicalIsKernel
14import Prelude hiding (maybe)
16import qualified Data.Text as Text
17import Data.Text (Text)
19import qualified Elm.Name as N
20import qualified Elm.Package as Pkg
29 { _package :: !Pkg.Name
41 Canonical Pkg.core "Basics"
46 Canonical Pkg.core "Maybe"
51 Canonical Pkg.core "List"
56 Canonical Pkg.core "Array"
59jsonDecode :: Canonical
61 Canonical Pkg.core "Json.Decode"
64jsonEncode :: Canonical
66 Canonical Pkg.core "Json.Encode"
71 Canonical Pkg.core "Platform.Cmd"
76 Canonical Pkg.core "Platform.Sub"
83canonicalToText :: Canonical -> Text
84canonicalToText (Canonical _ name) =
92isKernel :: N.Name -> Bool
94 Text.isPrefixOf "Elm.Kernel." name
97getKernel :: N.Name -> Text
102canonicalIsKernel :: Canonical -> Bool
103canonicalIsKernel (Canonical _ name) =
111instance Binary Canonical where
112 put (Canonical a b) =
116 Canonical <$> get <*> get
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