1{-# OPTIONS_GHC -Wall #-}
2{-# LANGUAGE OverloadedStrings #-}
5 , basics, maybe, list, array
7 , jsonDecode, jsonEncode
9 , isKernel, getKernel, canonicalIsKernel
14import Prelude hiding (maybe)
15import Control.Monad (liftM2)
17import qualified Data.Text as Text
18import Data.Text (Text)
20import qualified Elm.Name as N
21import qualified Elm.Package as Pkg
30 { _package :: !Pkg.Name
40{-# NOINLINE basics #-}
42basics = Canonical Pkg.core "Basics"
47maybe = Canonical Pkg.core "Maybe"
52list = Canonical Pkg.core "List"
57array = Canonical Pkg.core "Array"
60{-# NOINLINE platform #-}
62platform = Canonical Pkg.core "Platform"
67cmd = Canonical Pkg.core "Platform.Cmd"
72sub = Canonical Pkg.core "Platform.Sub"
75{-# NOINLINE jsonDecode #-}
76jsonDecode :: Canonical
77jsonDecode = Canonical Pkg.core "Json.Decode"
80{-# NOINLINE jsonEncode #-}
81jsonEncode :: Canonical
82jsonEncode = Canonical Pkg.core "Json.Encode"
89canonicalToText :: Canonical -> Text
90canonicalToText (Canonical _ name) =
98isKernel :: N.Name -> Bool
100 Text.isPrefixOf "Elm.Kernel." name
103getKernel :: N.Name -> Text
108canonicalIsKernel :: Canonical -> Bool
109canonicalIsKernel (Canonical _ name) =
117instance Binary Canonical where
118 put (Canonical a b) =
122 liftM2 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