Skip to content

Commit f75d5f4

Browse files
authored
Merge pull request #9 from reflex-frp/aa/reflex-0.9
Update for reflex-0.9
2 parents e6f4283 + 61b8f84 commit f75d5f4

File tree

8 files changed

+45
-26
lines changed

8 files changed

+45
-26
lines changed

.github/workflows/haskell.yml

+10-9
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,19 @@ jobs:
66
build:
77
strategy:
88
matrix:
9-
ghc: ['8.6.5', '8.8.4', '8.10.2']
9+
ghc: ['8.6.5', '8.8.4', '8.10.7']
1010
os: ['ubuntu-latest', 'macos-latest']
1111
runs-on: ${{ matrix.os }}
1212

1313
name: GHC ${{ matrix.ghc }} on ${{ matrix.os }}
1414
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions/setup-haskell@v1
15+
- uses: actions/checkout@v3
16+
- uses: haskell/actions/setup@v2
1717
with:
1818
ghc-version: ${{ matrix.ghc }}
19+
cabal-version: '3.10.1.0'
1920
- name: Cache
20-
uses: actions/cache@v1
21+
uses: actions/cache@v3
2122
env:
2223
cache-name: cache-cabal
2324
with:
@@ -30,12 +31,12 @@ jobs:
3031
${{ runner.os }}
3132
3233
- name: Install dependencies
33-
run: |
34-
cabal update
35-
cabal build --only-dependencies --enable-tests --enable-benchmarks
34+
run: cabal build --only-dependencies --enable-tests --enable-benchmarks
3635
- name: Build
3736
run: cabal build --enable-tests --enable-benchmarks all
3837
- name: Run tests
39-
run: cabal test all
40-
- name: Build Docs
38+
run: cabal test --enable-tests all
39+
- if: matrix.ghc != '8.4.4'
40+
# docs aren't built on ghc 8.4.4 because some dependency docs don't build on older GHCs
41+
name: Build Docs
4142
run: cabal haddock

ChangeLog.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Revision history for reflex-fsnotify
22

3+
## 0.3.0.0
4+
5+
* Require fsnotify >= 0.4, which has a breaking API change
6+
* Support reflex-0.9
7+
38
## 0.2.1.3
49

510
Support GHC 8.10

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# reflex-fsnotify
22

3-
[![Haskell](https://img.shields.io/badge/language-Haskell-orange.svg)](https://haskell.org) [![Hackage](https://img.shields.io/hackage/v/reflex-fsnotify.svg)](https://hackage.haskell.org/package/reflex-fsnotify) [![Hackage CI](https://matrix.hackage.haskell.org/api/v2/packages/reflex-fsnotify/badge)](https://matrix.hackage.haskell.org/#/package/reflex-fsnotify) [![Travis CI](https://api.travis-ci.org/reflex-frp/reflex-fsnotify.svg?branch=develop)](https://travis-ci.org/reflex-frp/reflex-fsnotify) [![BSD3 License](https://img.shields.io/badge/license-BSD3-blue.svg)](https://github.com/reflex-frp/reflex-fsnotify/blob/master/LICENSE)
3+
[![Haskell](https://img.shields.io/badge/language-Haskell-orange.svg)](https://haskell.org) [![Hackage](https://img.shields.io/hackage/v/reflex-fsnotify.svg)](https://hackage.haskell.org/package/reflex-fsnotify) [![BSD3 License](https://img.shields.io/badge/license-BSD3-blue.svg)](https://github.com/reflex-frp/reflex-fsnotify/blob/master/LICENSE)
44

55
Watch files and directories for changes using a functional-reactive interface!

reflex-fsnotify.cabal

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: >=1.10
22
name: reflex-fsnotify
3-
version: 0.2.1.3
3+
version: 0.3.0.0
44
synopsis: Reflex FRP interface for watching files
55
description:
66
Watch files and directories for changes using a functional-reactive interface!
@@ -16,16 +16,16 @@ category: System, FRP
1616
build-type: Simple
1717
extra-source-files: ChangeLog.md
1818
README.md
19-
tested-with: GHC ==8.10.2 || ==8.8.4 || ==8.6.5
19+
tested-with: GHC ==8.10.7 || ==8.8.4 || ==8.6.5
2020

2121
library
2222
exposed-modules: Reflex.FSNotify
23-
build-depends: base >=4.10 && <4.15
23+
build-depends: base >=4.10 && <4.19
2424
, containers >= 0.6 && < 0.7
2525
, directory >= 1.3 && < 1.4
2626
, filepath >= 1.4 && < 1.5
27-
, fsnotify >= 0.3 && < 0.4
28-
, reflex >= 0.5 && < 0.9
27+
, fsnotify >= 0.4 && < 0.5
28+
, reflex >= 0.5 && < 1
2929
hs-source-dirs: src
3030
default-language: Haskell2010
3131
ghc-options: -Wall

reflex-platform/default.nix

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
11
# DO NOT HAND-EDIT THIS FILE
2-
import ((import <nixpkgs> {}).fetchFromGitHub (
3-
let json = builtins.fromJSON (builtins.readFile ./github.json);
4-
in { inherit (json) owner repo rev sha256;
5-
private = json.private or false;
6-
}
7-
))
2+
import (import ./thunk.nix)

reflex-platform/github.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"owner": "reflex-frp",
33
"repo": "reflex-platform",
4-
"branch": "aa-vty",
5-
"rev": "17ff24efff2e6272a2f8df5021e229d9a20d4ac5",
6-
"sha256": "0vgqxid9dldi5gvlhmiijikq58vaxz7w254ggj91935qd5x70wb9"
4+
"branch": "release/1.0.1.0",
5+
"private": false,
6+
"rev": "50099ce2bca93ef69cea615ec72152b4a7648de4",
7+
"sha256": "1ldzf3qznpysf4drkrvj7ysmdvrv6ddprnniylvcxccpp0f4krb7"
78
}

reflex-platform/thunk.nix

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# DO NOT HAND-EDIT THIS FILE
2+
let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }:
3+
if !fetchSubmodules && !private then builtins.fetchTarball {
4+
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256;
5+
} else (import (builtins.fetchTarball {
6+
url = "https://github.com/NixOS/nixpkgs/archive/3aad50c30c826430b0270fcf8264c8c41b005403.tar.gz";
7+
sha256 = "0xwqsf08sywd23x0xvw4c4ghq0l28w2ki22h0bdn766i16z9q2gr";
8+
}) {}).fetchFromGitHub {
9+
inherit owner repo rev sha256 fetchSubmodules private;
10+
};
11+
json = builtins.fromJSON (builtins.readFile ./github.json);
12+
in fetch json

release.nix

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
{ p ? import ./reflex-platform {}
1+
{ p ? import ./reflex-platform { __useNewerCompiler = true; }
22
}:
33
let
44
inherit (p.nixpkgs) lib;
5-
in p.ghc.callCabal2nix "reflex-fsnotify" ./. {}
5+
ghc = p.ghc.override {
6+
overrides = self: super: {
7+
fsnotify = p.nixpkgs.haskell.lib.dontCheck (self.callHackage "fsnotify" "0.4.1.0" {});
8+
};
9+
};
10+
in ghc.callCabal2nix "reflex-fsnotify" ./. {}

0 commit comments

Comments
 (0)