Add rawVersion for elm-package
commit1611262bead5db2f6cec7465a8bbe2ae6eaa935b
authorEvan Czaplicki <info@elm-lang.org>
dateMon 23 Mar 2015, 18:36 (12 years ago)
parent5cf1074
src/Elm/Compiler.hs+6−1
@@ -1,7 +1,7 @@
11{-# OPTIONS_GHC -Wall #-}
22{-# LANGUAGE FlexibleContexts #-}
33module Elm.Compiler
4− ( version
4+ ( version, rawVersion
55 , parseDependencies, compile
66 ) where
77
@@ -27,6 +27,11 @@ version =
2727 Version.version
2828
2929
30+rawVersion :: [Int]
31+rawVersion =
32+ Version.rawVersion
33+
34+
3035-- DEPENDENCIES
3136
3237parseDependencies
src/Elm/Compiler/Version.hs+6−1
@@ -1,5 +1,5 @@
11{-# OPTIONS_GHC -Wall #-}
2−module Elm.Compiler.Version (version) where
2+module Elm.Compiler.Version (version, rawVersion) where
33
44import qualified Data.Version as Version
55import qualified Paths_elm_compiler as This
@@ -8,3 +8,8 @@ import qualified Paths_elm_compiler as This
88version :: String
99version =
1010 Version.showVersion This.version
11+
12+
13+rawVersion :: [Int]
14+rawVersion =
15+ Version.versionBranch This.version