aboutsummaryrefslogtreecommitdiff
path: root/src/CabalHelper
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2018-12-15 22:55:56 +0100
committerDaniel Gröber <dxld@darkboxed.org>2019-01-22 03:06:51 +0100
commitf958f2d07e8cd213014bff98de5e305e7ce84608 (patch)
tree09028aebcfcf32f8f8f2efefeeea3e44348f037a /src/CabalHelper
parent8b1729d8da802c6f8ffa2c8efd1118ef9ef543e0 (diff)
Implement `compilerVersion`
Diffstat (limited to 'src/CabalHelper')
-rw-r--r--src/CabalHelper/Compiletime/Types.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/CabalHelper/Compiletime/Types.hs b/src/CabalHelper/Compiletime/Types.hs
index e632c3b..60b0f4d 100644
--- a/src/CabalHelper/Compiletime/Types.hs
+++ b/src/CabalHelper/Compiletime/Types.hs
@@ -37,6 +37,9 @@ import System.Posix.Types
import CabalHelper.Compiletime.Types.RelativePath
import CabalHelper.Shared.InterfaceTypes
+import Data.List.NonEmpty (NonEmpty)
+--import qualified Data.List.NonEmpty as NonEmpty
+
-- | The kind of project being managed by a 'QueryEnv' (pun intended).
data ProjType
@@ -217,7 +220,7 @@ newtype ProjConfModTimes = ProjConfModTimes [(FilePath, EpochTime)]
data ProjInfo pt = ProjInfo
{ piCabalVersion :: !Version
, piProjConfModTimes :: !ProjConfModTimes
- , piUnits :: ![Unit pt]
+ , piUnits :: !(NonEmpty (Unit pt))
, piImpl :: !(ProjInfoImpl pt)
}