Skip to content

Commit e43f7cf

Browse files
committed
use and require released implicit 0.4
1 parent 379282f commit e43f7cf

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

cabal.project.local.ci

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
-- NOTE: having implicit listed here breaks hint
22
-- see https://github.com/Haskell-Things/implicitpipe/issues/2
3-
-- but it is required for CI now
4-
-- until 0.4
5-
source-repository-package
6-
type: git
7-
location: https://github.com/Haskell-Things/ImplicitCAD
8-
tag: ae794b901e9677593815fad741d87ff56846562d
3+
--
4+
-- source-repository-package
5+
-- type: git
6+
-- location: https://github.com/Haskell-Things/ImplicitCAD
7+
-- tag: ae794b901e9677593815fad741d87ff56846562d
98

109
-- fork due to resizeBuffer PR https://github.com/tobbebex/GPipe-Core/pull/76
1110
source-repository-package

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ rev ? "c542baa0c894796c92a8173dead027f3b952c22e"
1+
{ rev ? "7c6985653708c5fade76d2014824ff333b0a07b2"
22
, overlays ? [ (import ./overlay.nix) ]
33
, pkgs ?
44
if ((rev == "") || (rev == "default") || (rev == "local"))

implicitpipe.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ library
2020
, directory
2121
, filepath
2222
, fsnotify
23-
, GPipe >=2.2
24-
, GPipe-GLFW >=1.4
23+
, GPipe >= 2.2
24+
, GPipe-GLFW >= 1.4
2525
, GLFW-b
2626
, hint
27-
, implicit
27+
, implicit >= 0.4
2828
, linear
2929
, optparse-applicative
3030
, stm

overlay.nix

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ in
2525
GPipe = hsuper.callCabal2nix "GPipe" "${gpipeSrc}/GPipe-Core" {};
2626
GPipe-GLFW = hsuper.callCabal2nix "GPipe-GLFW" ("${gpipeGlfwSrc}/GPipe-GLFW") {};
2727

28-
# until > 4.0.0 is out
29-
implicit = hsuper.callCabal2nix "implicit" (super.fetchFromGitHub {
30-
owner = "Haskell-Things";
31-
repo = "ImplicitCAD";
32-
rev = "ae794b901e9677593815fad741d87ff56846562d";
33-
sha256 = "0q8bj3jysgl7kfivrag8g6yx58n5rxf69qsc3lw43941lamaxpda";
34-
}) {};
28+
# for development
29+
# implicit = hsuper.callCabal2nix "implicit" (super.fetchFromGitHub {
30+
# owner = "Haskell-Things";
31+
# repo = "ImplicitCAD";
32+
# rev = "ae794b901e9677593815fad741d87ff56846562d";
33+
# sha256 = "0q8bj3jysgl7kfivrag8g6yx58n5rxf69qsc3lw43941lamaxpda";
34+
# }) {};
3535
});
3636
});
3737
})

src/Graphics/Implicit/Viewer/Demos.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{-# OPTIONS_GHC -fno-warn-type-defaults #-}
2+
{-# LANGUAGE FlexibleContexts #-}
23
module Graphics.Implicit.Viewer.Demos where
34

45
import Linear
@@ -95,7 +96,7 @@ sph = implicit (\(V2 x y) -> 10*x^(2 :: Int) + y^(2 :: Int) - 1) (pure (-10), (p
9596
-- (sphere (sqrt (3 * (n/2) ^2) ))
9697
-- @
9798
mixed
98-
:: (Object obj vec, Semigroup obj)
99+
:: (Object obj f Double, Semigroup obj)
99100
=>
100101
-> obj
101102
-> obj

0 commit comments

Comments
 (0)