-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Support ghc 8.10 #129
base: master
Are you sure you want to change the base?
Support ghc 8.10 #129
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
packages: . | ||
|
||
source-repository-package | ||
type: git | ||
location: https://github.com/414owen/llvm-hs.git | ||
tag: 169e8518b0d9bd425f2daecbcab8b28b54da54dc | ||
subdir: llvm-hs | ||
|
||
source-repository-package | ||
type: git | ||
location: https://github.com/414owen/llvm-hs.git | ||
tag: 169e8518b0d9bd425f2daecbcab8b28b54da54dc | ||
subdir: llvm-hs-pure |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -244,7 +244,7 @@ library | |
optparse-applicative, | ||
directory, | ||
pretty-simple, | ||
functor-infix, | ||
composition-extra, | ||
generic-random, | ||
hspec, | ||
hspec-core, | ||
|
@@ -260,7 +260,8 @@ library | |
deepseq, | ||
binary, | ||
unix, | ||
libffi | ||
libffi, | ||
data-fix | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think |
||
|
||
default-language: Haskell2010 | ||
|
||
|
@@ -299,7 +300,7 @@ test-suite grin-test | |
build-depends: base >=4.11 | ||
, containers | ||
, filepath | ||
, functor-infix | ||
, composition-extra | ||
, grin | ||
, hspec | ||
, hspec-core | ||
|
@@ -407,7 +408,7 @@ test-suite grin-end-to-end-test | |
build-depends: base >=4.11 | ||
, containers | ||
, filepath | ||
, functor-infix | ||
, composition-extra | ||
, grin | ||
, hspec | ||
, hspec-core | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -434,7 +434,7 @@ codeGenCase opVal alts bindingGen = do | |
(Alt DefaultPat _, _) -> True | ||
_ -> False | ||
(defaultAlts, normalAlts) = List.partition isDefault alts | ||
when (length defaultAlts > 1) $ fail "multiple default patterns" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was complaining that |
||
when (length defaultAlts > 1) $ error "multiple default patterns" | ||
let orderedAlts = defaultAlts ++ normalAlts | ||
|
||
(altDests, altValues, altCGTypes) <- fmap List.unzip3 . forM orderedAlts $ \(Alt cpat _, altBody) -> do | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked into getting
functor-infix
to increase its bounds, but the author is unresponsive, so I think it's best to switch libraries.I prefer
composition-extra
's approach anyway. No TH necessary.