Skip to content

Commit 4680464

Browse files
committed
fix: Examples should build
1 parent ff2e32b commit 4680464

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

dataframe-hasktorch/dataframe-hasktorch.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ library
3838
build-depends: base >= 4.11 && < 5,
3939
vector ^>= 0.13,
4040
dataframe ^>= 1,
41+
hasktorch >= 0.2.1.6 && < 0.3
4142
if impl(ghc >= 9.12)
4243
build-depends: ghc-typelits-natnormalise == 0.9.3
4344
else
4445
build-depends: ghc-typelits-natnormalise >= 0.7.7 && < 0.9
45-
hasktorch >= 0.2.1.6 && < 0.3
4646

4747
hs-source-dirs: src
4848

examples/Iris.lhs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ Think of these like compiler flags in C++ or decorator syntax in Python:
3333
Now we import the libraries we need. This is similar to `import` statements
3434
in Python or `#include` in C++:
3535

36-
> import GHC.Generics (Generic)
3736
>
3837
> import Control.Exception (throw)
3938
> import Control.Monad (when, zipWithM_)

examples/examples.cabal

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,6 @@ executable examples
110110
deepseq >= 1 && < 2,
111111
directory >= 1.3.0.0 && < 2,
112112
granite ^>= 0.4,
113-
if impl(ghc >= 9.12)
114-
build-depends: ghc-typelits-natnormalise == 0.9.3
115-
else
116-
build-depends: ghc-typelits-natnormalise >= 0.7.7 && < 0.9,
117113
hashable >= 1.2 && < 2,
118114
hasktorch,
119115
http-conduit,
@@ -138,6 +134,10 @@ executable examples
138134
stm >= 2.5 && < 3,
139135
filepath >= 1.4 && < 2,
140136
Glob >= 0.10 && < 1,
137+
if impl(ghc >= 9.12)
138+
build-depends: ghc-typelits-natnormalise == 0.9.3
139+
else
140+
build-depends: ghc-typelits-natnormalise >= 0.7.7 && < 0.9
141141
c-sources: ../cbits/process_csv.c
142142
include-dirs: ../cbits
143143
includes: process_csv.h

0 commit comments

Comments
 (0)