forked from haskell-nix/hnix-store
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request haskell-nix#241 from haskell-nix/srk/split
Split core into multiple packages
- Loading branch information
Showing
50 changed files
with
778 additions
and
404 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
-- due to recent generic-arbitrary | ||
{-# OPTIONS_GHC -fconstraint-solver-iterations=0 #-} | ||
{-| | ||
Description : Build related types | ||
Maintainer : srk <[email protected]> | ||
|
@@ -14,15 +12,11 @@ module System.Nix.Build | |
import Data.Time (UTCTime) | ||
import Data.Text (Text) | ||
import GHC.Generics (Generic) | ||
import Test.QuickCheck (Arbitrary(..)) | ||
import Test.QuickCheck.Arbitrary.Generic (GenericArbitrary(..)) | ||
import Test.QuickCheck.Instances () | ||
|
||
-- keep the order of these Enums to match enums from reference implementations | ||
-- src/libstore/store-api.hh | ||
data BuildMode = Normal | Repair | Check | ||
deriving (Eq, Generic, Ord, Enum, Show) | ||
deriving Arbitrary via GenericArbitrary BuildMode | ||
|
||
data BuildStatus = | ||
Built | ||
|
@@ -41,7 +35,6 @@ data BuildStatus = | |
| ResolvesToAlreadyValid | ||
| NoSubstituters | ||
deriving (Eq, Generic, Ord, Enum, Show) | ||
deriving Arbitrary via GenericArbitrary BuildStatus | ||
|
||
-- | Result of the build | ||
data BuildResult = BuildResult | ||
|
@@ -59,7 +52,6 @@ data BuildResult = BuildResult | |
stopTime :: !UTCTime | ||
} | ||
deriving (Eq, Generic, Ord, Show) | ||
deriving Arbitrary via GenericArbitrary BuildResult | ||
|
||
buildSuccess :: BuildResult -> Bool | ||
buildSuccess BuildResult {..} = | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.