Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nix flake #193

Merged
merged 2 commits into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
4 changes: 4 additions & 0 deletions .hlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- ignore:
name: "Redundant if"
- ignore:
name: "Use unless"
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Here is the type:

```haskell
newtype Path b t = Path FilePath
deriving (Data, Typeable, Generic)
deriving (Data, Generic)
```

The type variables are:
Expand All @@ -102,15 +102,15 @@ The type variables are:
The base types can be filled with these:

```haskell
data Abs deriving (Typeable)
data Rel deriving (Typeable)
data Abs
data Rel
```

And the type can be filled with these:

```haskell
data File deriving (Typeable)
data Dir deriving (Typeable)
data File
data Dir
```

(Why not use data kinds like `data Type = File | Dir`? Because that imposes
Expand Down
2 changes: 0 additions & 2 deletions Setup.hs

This file was deleted.

2 changes: 2 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages: */*.cabal
test-show-details: direct
48 changes: 48 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{ mkDerivation
, aeson
, base
, bytestring
, deepseq
, exceptions
, filepath
, genvalidity
, genvalidity-hspec
, hashable
, hspec
, lib
, QuickCheck
, template-haskell
, text
, validity-bytestring
}:
mkDerivation {
pname = "path";
version = "0.9.6";
src = ./.;
libraryHaskellDepends = [
aeson
base
deepseq
exceptions
filepath
hashable
template-haskell
text
];
testHaskellDepends = [
aeson
base
bytestring
exceptions
filepath
genvalidity
genvalidity-hspec
hspec
QuickCheck
template-haskell
validity-bytestring
];
doHaddock = false;
description = "Support for well-typed paths";
license = lib.licenses.bsd3;
}
Loading