Skip to content

Commit d6211a3

Browse files
committed
Update to recent ImplicitCAD and GPipe-GLFW
1 parent b993010 commit d6211a3

File tree

5 files changed

+34
-16
lines changed

5 files changed

+34
-16
lines changed

cabal.project

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,23 @@
11
packages: ./.
2+
3+
-- until 0.4
4+
source-repository-package
5+
type: git
6+
location: https://github.com/Haskell-Things/ImplicitCAD
7+
tag: ae794b901e9677593815fad741d87ff56846562d
8+
9+
-- fork due to resizeBuffer PR https://github.com/tobbebex/GPipe-Core/pull/76
10+
source-repository-package
11+
type: git
12+
location: https://github.com/sorki/GPipe-Core
13+
tag: 86a7b29014e7ebfb24ac17d5afcd877a38a1fbd5
14+
subdir:
15+
GPipe-Core
16+
17+
-- until next release
18+
source-repository-package
19+
type: git
20+
location: https://github.com/plredmond/GPipe-GLFW
21+
tag: 3d7e91a20a80fe31e910884b151ebe4d26e8274e
22+
subdir:
23+
GPipe-GLFW

example-haskell/SomeModule.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import SomeOtherModule
99
res = 2
1010

1111
obj = union $ [
12-
cubeR 0 False (V3 20 20 14)
12+
cube False (V3 20 20 14)
1313
, translate (V3 20 20 20) (sphere 15)
1414
, translate (V3 30 20 20) (sphere 5)
15-
, translate (V3 0 0 25) (cubeR 2 False (pure 10))
15+
, translate (V3 0 0 25) (withRounding 2 $ cube False (pure 10))
1616
, translate (V3 25 0 0) (cylinder2 10 4 10)
1717
, translate (V3 (-25) 0 0) obj'
1818
]

overlay.nix

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ let
1313
gpipeGlfwSrc = super.fetchFromGitHub {
1414
owner = "plredmond";
1515
repo = "GPipe-GLFW";
16-
rev = "83d26eb7b41d67f5ac6fbd1bd8758d72c660e039";
17-
sha256 = "0fg60amvp2v37cwmvfa0n7if1ppisjjh3bknmrr17m7fbfbbxlhq";
16+
rev = "3d7e91a20a80fe31e910884b151ebe4d26e8274e";
17+
sha256 = "0rx00mxlz6jlipx19h271mbnp8l9kzgm3dhwprwww4gf8g43r7vd";
1818
};
1919
in
2020
({
@@ -25,12 +25,12 @@ in
2525
GPipe = hsuper.callCabal2nix "GPipe" "${gpipeSrc}/GPipe-Core" {};
2626
GPipe-GLFW = hsuper.callCabal2nix "GPipe-GLFW" ("${gpipeGlfwSrc}/GPipe-GLFW") {};
2727

28-
# until > 3.0.2 is out
28+
# until > 4.0.0 is out
2929
implicit = hsuper.callCabal2nix "implicit" (super.fetchFromGitHub {
30-
owner = "colah";
30+
owner = "Haskell-Things";
3131
repo = "ImplicitCAD";
32-
rev = "8dff5531cdc4d9ed32bf958e3945b4a3a0ef3774";
33-
sha256 = "0bp797a9wlpyw2d6b4csz5ikqq3wy1qry0iabl7r7axjrhvnfp56";
32+
rev = "ae794b901e9677593815fad741d87ff56846562d";
33+
sha256 = "0q8bj3jysgl7kfivrag8g6yx58n5rxf69qsc3lw43941lamaxpda";
3434
}) {};
3535
});
3636
});

src/Graphics/Implicit/Viewer/Loaders.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import Data.List (isSuffixOf)
1616
import Data.Time (getCurrentTime, diffUTCTime)
1717
import Data.Typeable (Typeable)
1818

19-
import Linear (V3(V3))
2019
import Graphics.Implicit
2120
import Graphics.Implicit.Primitives (getBox)
2221
import Graphics.Implicit.ExtOpenScad.Definitions

stack.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,24 @@
22

33
# Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2)
44

5-
resolver: lts-16.25
5+
resolver: lts-19.5
66

77
# Local packages, usually specified by relative directory name
88
packages:
99
- .
1010

1111
# Packages to be pulled from upstream that are not in the resolver (e.g., acme-missiles-0.3)
1212
extra-deps:
13-
- storable-endian-0.2.6
14-
- quickspec-2.1.5@sha256:1d1cc020fa9075cb5fafd4056fe1d930d5763b954fa8200e57ce6aba057544b2,3557
15-
- twee-lib-2.2@sha256:9fe9327505d8f450a94f2fc9eea74b292901b7992d520aa1dd4f0410fbe0e594,2112
1613
- git: git@github.com:sorki/GPipe-Core
1714
commit: 86a7b29014e7ebfb24ac17d5afcd877a38a1fbd5
1815
subdirs:
1916
- GPipe-Core
2017
- git: git@github.com:plredmond/GPipe-GLFW
21-
commit: 83d26eb7b41d67f5ac6fbd1bd8758d72c660e039
18+
commit: 3d7e91a20a80fe31e910884b151ebe4d26e8274e
2219
subdirs:
2320
- GPipe-GLFW
24-
- git: git@github.com:colah/ImplicitCAD
25-
commit: 8dff5531cdc4d9ed32bf958e3945b4a3a0ef3774
21+
- git: git@github.com:Haskell-Things/ImplicitCAD
22+
commit: ae794b901e9677593815fad741d87ff56846562d
2623

2724
# Override default flag values for local packages and extra-deps
2825
flags: {}

0 commit comments

Comments
 (0)