1{-# OPTIONS_GHC -Wall #-}
2{-# LANGUAGE OverloadedStrings #-}
5 , basics, maybe, list, array
8 , isKernel, getKernel, canonicalIsKernel
13import Prelude hiding (maybe)
15import qualified Data.Text as Text
16import Data.Text (Text)
18import qualified Elm.Name as N
19import qualified Elm.Package as Pkg
28 { _package :: !Pkg.Name
40 Canonical Pkg.core "Basics"
45 Canonical Pkg.core "Maybe"
50 Canonical Pkg.core "List"
55 Canonical Pkg.core "Array"
58jsonEncode :: Canonical
60 Canonical Pkg.core "Json.Encode"
65 Canonical Pkg.core "Platform.Cmd"
70 Canonical Pkg.core "Platform.Sub"
77canonicalToText :: Canonical -> Text
78canonicalToText (Canonical _ name) =
86isKernel :: N.Name -> Bool
88 Text.isPrefixOf "Elm.Kernel." name
91getKernel :: N.Name -> Text
96canonicalIsKernel :: Canonical -> Bool
97canonicalIsKernel (Canonical _ name) =
105instance Binary Canonical where
106 put (Canonical a b) =
110 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