1{-# OPTIONS_GHC -Wall #-}
2{-# LANGUAGE OverloadedStrings #-}
8 , jsonDecode, jsonEncode
9 , webgl, vector2, vector3, vector4, matrix4
11 , isKernel, getKernel, canonicalIsKernel
16import Prelude hiding (maybe)
17import Control.Monad (liftM2)
19import qualified Data.Text as Text
20import Data.Text (Text)
22import qualified Elm.Name as N
23import qualified Elm.Package as Pkg
32 { _package :: !Pkg.Name
42{-# NOINLINE basics #-}
44basics = Canonical Pkg.core "Basics"
49char = Canonical Pkg.core "Char"
52{-# NOINLINE string #-}
54string = Canonical Pkg.core "String"
63maybe = Canonical Pkg.core "Maybe"
68list = Canonical Pkg.core "List"
73array = Canonical Pkg.core "Array"
80{-# NOINLINE platform #-}
82platform = Canonical Pkg.core "Platform"
87cmd = Canonical Pkg.core "Platform.Cmd"
92sub = Canonical Pkg.core "Platform.Sub"
99{-# NOINLINE jsonDecode #-}
100jsonDecode :: Canonical
101jsonDecode = Canonical Pkg.core "Json.Decode"
104{-# NOINLINE jsonEncode #-}
105jsonEncode :: Canonical
106jsonEncode = Canonical Pkg.core "Json.Encode"
113{-# NOINLINE webgl #-}
115webgl = Canonical Pkg.webgl "WebGL"
118{-# NOINLINE vector2 #-}
120vector2 = Canonical Pkg.linearAlgebra "Math.Vector2"
123{-# NOINLINE vector3 #-}
125vector3 = Canonical Pkg.linearAlgebra "Math.Vector3"
128{-# NOINLINE vector4 #-}
130vector4 = Canonical Pkg.linearAlgebra "Math.Vector4"
133{-# NOINLINE matrix4 #-}
135matrix4 = Canonical Pkg.linearAlgebra "Math.Matrix4"
142canonicalToText :: Canonical -> Text
143canonicalToText (Canonical _ name) =
151isKernel :: N.Name -> Bool
153 Text.isPrefixOf "Elm.Kernel." name
156getKernel :: N.Name -> Text
161canonicalIsKernel :: Canonical -> Bool
162canonicalIsKernel (Canonical _ name) =
170instance Binary Canonical where
171 put (Canonical a b) =
175 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