1{-# OPTIONS_GHC -Wall #-}
2{-# LANGUAGE OverloadedStrings #-}
8 , virtualDom, debug, bitwise
9 , jsonDecode, jsonEncode
10 , webgl, vector2, vector3, vector4, matrix4
12 , isKernel, getKernel, canonicalIsKernel
17import Prelude hiding (maybe)
18import Control.Monad (liftM2)
20import qualified Data.Text as Text
21import Data.Text (Text)
23import qualified Elm.Name as N
24import qualified Elm.Package as Pkg
33 { _package :: !Pkg.Name
39instance Eq Canonical where
40 (==) (Canonical pkg home) (Canonical pkg' home') =
41 home == home' && pkg == pkg'
48{-# NOINLINE basics #-}
50basics = Canonical Pkg.core "Basics"
55char = Canonical Pkg.core N.char
58{-# NOINLINE string #-}
60string = Canonical Pkg.core N.string
69maybe = Canonical Pkg.core N.maybe
74list = Canonical Pkg.core N.list
79array = Canonical Pkg.core N.array
86{-# NOINLINE platform #-}
88platform = Canonical Pkg.core N.platform
93cmd = Canonical Pkg.core "Platform.Cmd"
98sub = Canonical Pkg.core "Platform.Sub"
105{-# NOINLINE virtualDom #-}
106virtualDom :: Canonical
107virtualDom = Canonical Pkg.virtualDom "VirtualDom"
110{-# NOINLINE debug #-}
112debug = Canonical Pkg.core N.debug
115{-# NOINLINE bitwise #-}
117bitwise = Canonical Pkg.core N.bitwise
124{-# NOINLINE jsonDecode #-}
125jsonDecode :: Canonical
126jsonDecode = Canonical Pkg.json "Json.Decode"
129{-# NOINLINE jsonEncode #-}
130jsonEncode :: Canonical
131jsonEncode = Canonical Pkg.json "Json.Encode"
138{-# NOINLINE webgl #-}
140webgl = Canonical Pkg.webgl "WebGL"
143{-# NOINLINE vector2 #-}
145vector2 = Canonical Pkg.linearAlgebra "Math.Vector2"
148{-# NOINLINE vector3 #-}
150vector3 = Canonical Pkg.linearAlgebra "Math.Vector3"
153{-# NOINLINE vector4 #-}
155vector4 = Canonical Pkg.linearAlgebra "Math.Vector4"
158{-# NOINLINE matrix4 #-}
160matrix4 = Canonical Pkg.linearAlgebra "Math.Matrix4"
167canonicalToText :: Canonical -> Text
168canonicalToText (Canonical _ name) =
176isKernel :: N.Name -> Bool
178 Text.isPrefixOf "Elm.Kernel." name
181getKernel :: N.Name -> Text
186canonicalIsKernel :: Canonical -> Bool
187canonicalIsKernel (Canonical _ name) =
195instance Binary Canonical where
196 put (Canonical a b) =
200 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