1{-# OPTIONS_GHC -Wall #-}
2{-# LANGUAGE OverloadedStrings #-}
8 , virtualDom, debug, bitwise
9 , jsonDecode, jsonEncode
10 , webgl, vector2, vector3, vector4, matrix4
11 , isKernel, getKernel, canonicalIsKernel
16import Prelude hiding (maybe)
17import Control.Monad (liftM2)
20import qualified Elm.Name as N
21import qualified Elm.Package as Pkg
30 { _package :: !Pkg.Name
36instance Eq Canonical where
37 (==) (Canonical pkg home) (Canonical pkg' home') =
38 home == home' && pkg == pkg'
45{-# NOINLINE basics #-}
47basics = Canonical Pkg.core "Basics"
52char = Canonical Pkg.core N.char
55{-# NOINLINE string #-}
57string = Canonical Pkg.core N.string
66maybe = Canonical Pkg.core N.maybe
71list = Canonical Pkg.core N.list
76array = Canonical Pkg.core N.array
83{-# NOINLINE platform #-}
85platform = Canonical Pkg.core N.platform
90cmd = Canonical Pkg.core "Platform.Cmd"
95sub = Canonical Pkg.core "Platform.Sub"
102{-# NOINLINE virtualDom #-}
103virtualDom :: Canonical
104virtualDom = Canonical Pkg.virtualDom "VirtualDom"
107{-# NOINLINE debug #-}
109debug = Canonical Pkg.core N.debug
112{-# NOINLINE bitwise #-}
114bitwise = Canonical Pkg.core N.bitwise
121{-# NOINLINE jsonDecode #-}
122jsonDecode :: Canonical
123jsonDecode = Canonical Pkg.json "Json.Decode"
126{-# NOINLINE jsonEncode #-}
127jsonEncode :: Canonical
128jsonEncode = Canonical Pkg.json "Json.Encode"
135{-# NOINLINE webgl #-}
137webgl = Canonical Pkg.webgl "WebGL"
140{-# NOINLINE vector2 #-}
142vector2 = Canonical Pkg.linearAlgebra "Math.Vector2"
145{-# NOINLINE vector3 #-}
147vector3 = Canonical Pkg.linearAlgebra "Math.Vector3"
150{-# NOINLINE vector4 #-}
152vector4 = Canonical Pkg.linearAlgebra "Math.Vector4"
155{-# NOINLINE matrix4 #-}
157matrix4 = Canonical Pkg.linearAlgebra "Math.Matrix4"
164isKernel :: N.Name -> Bool
166 N.startsWith "Elm.Kernel." name
169getKernel :: N.Name -> N.Name
174canonicalIsKernel :: Canonical -> Bool
175canonicalIsKernel (Canonical _ name) =
183instance Binary Canonical where
184 put (Canonical a b) =
188 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