on ea77dcf help sign in
elk/src/Elm/Compiler/Version.hs
27 lines 548 B history raw
1{-# OPTIONS_GHC -Wall #-}
2module Elm.Compiler.Version (version) where
4import qualified Data.Version as Version
5import qualified Paths_elm_compiler as This
6import Elm.Package (Version(Version))
10-- VERSION
13version :: Version
14version =
15 case map fromIntegral (Version.versionBranch This.version) of
16 major : minor : patch : _ ->
17 Version major minor patch
19 [major, minor] ->
20 Version major minor 0
22 [major] ->
23 Version major 0 0
25 [] ->
26 error "could not detect version of elm-compiler you are using"