1{-# OPTIONS_GHC -Wall #-}
2{-# LANGUAGE OverloadedStrings #-}
6 , maybe, result, list, array, dict, tuple
8 , virtualDom, debug, bitwise
9 , jsonDecode, jsonEncode
10 , webgl, texture, vector2, vector3, vector4, matrix4
16import Prelude hiding (maybe)
17import Control.Monad (liftM2)
19import qualified Data.Name as Name
21import qualified Elm.Package as Pkg
30 { _package :: !Pkg.Name
31 , _module :: !Name.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 Name.char
55{-# NOINLINE string #-}
57string = Canonical Pkg.core Name.string
66maybe = Canonical Pkg.core Name.maybe
69{-# NOINLINE result #-}
71result = Canonical Pkg.core Name.result
76list = Canonical Pkg.core Name.list
81array = Canonical Pkg.core Name.array
86dict = Canonical Pkg.core Name.dict
91tuple = Canonical Pkg.core Name.tuple
98{-# NOINLINE platform #-}
100platform = Canonical Pkg.core Name.platform
105cmd = Canonical Pkg.core "Platform.Cmd"
110sub = Canonical Pkg.core "Platform.Sub"
117{-# NOINLINE virtualDom #-}
118virtualDom :: Canonical
119virtualDom = Canonical Pkg.virtualDom Name.virtualDom
122{-# NOINLINE debug #-}
124debug = Canonical Pkg.core Name.debug
127{-# NOINLINE bitwise #-}
129bitwise = Canonical Pkg.core Name.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 texture #-}
157texture = Canonical Pkg.webgl "WebGL.Texture"
160{-# NOINLINE vector2 #-}
162vector2 = Canonical Pkg.linearAlgebra "Math.Vector2"
165{-# NOINLINE vector3 #-}
167vector3 = Canonical Pkg.linearAlgebra "Math.Vector3"
170{-# NOINLINE vector4 #-}
172vector4 = Canonical Pkg.linearAlgebra "Math.Vector4"
175{-# NOINLINE matrix4 #-}
177matrix4 = Canonical Pkg.linearAlgebra "Math.Matrix4"
184canonicalIsKernel :: Canonical -> Bool
185canonicalIsKernel (Canonical _ name) =
193instance Binary Canonical where
194 put (Canonical a b) =
198 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