1{-# OPTIONS_GHC -Wall #-}
2{-# LANGUAGE OverloadedStrings #-}
6 , maybe, result, list, array, dict, tuple
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
69{-# NOINLINE result #-}
71result = Canonical Pkg.core N.result
76list = Canonical Pkg.core N.list
81array = Canonical Pkg.core N.array
86dict = Canonical Pkg.core N.dict
91tuple = Canonical Pkg.core N.tuple
98{-# NOINLINE platform #-}
100platform = Canonical Pkg.core N.platform
105cmd = Canonical Pkg.core "Platform.Cmd"
110sub = Canonical Pkg.core "Platform.Sub"
117{-# NOINLINE virtualDom #-}
118virtualDom :: Canonical
119virtualDom = Canonical Pkg.virtualDom N.virtualDom
122{-# NOINLINE debug #-}
124debug = Canonical Pkg.core N.debug
127{-# NOINLINE bitwise #-}
129bitwise = Canonical Pkg.core N.bitwise
136{-# NOINLINE jsonDecode #-}
137jsonDecode :: Canonical
138jsonDecode = Canonical Pkg.json "Json.Decode"
141{-# NOINLINE jsonEncode #-}
142jsonEncode :: Canonical
143jsonEncode = Canonical Pkg.json "Json.Encode"
150{-# NOINLINE webgl #-}
152webgl = Canonical Pkg.webgl "WebGL"
155{-# NOINLINE vector2 #-}
157vector2 = Canonical Pkg.linearAlgebra "Math.Vector2"
160{-# NOINLINE vector3 #-}
162vector3 = Canonical Pkg.linearAlgebra "Math.Vector3"
165{-# NOINLINE vector4 #-}
167vector4 = Canonical Pkg.linearAlgebra "Math.Vector4"
170{-# NOINLINE matrix4 #-}
172matrix4 = Canonical Pkg.linearAlgebra "Math.Matrix4"
179isKernel :: N.Name -> Bool
181 N.startsWith "Elm.Kernel." name
184getKernel :: N.Name -> N.Name
189canonicalIsKernel :: Canonical -> Bool
190canonicalIsKernel (Canonical _ name) =
198instance Binary Canonical where
199 put (Canonical a b) =
203 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