1
0
forked from GitHub/gf-core

Merge pull request #78 from anka-213/solve-syntax-error-bug

Fix syntax error problem for older versions of GHC
This commit is contained in:
John J. Camilleri
2020-10-09 11:56:21 +02:00
committed by GitHub
2 changed files with 8 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ jobs:
- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel==1.4.2
python -m pip install git+https://github.com/joerick/cibuildwheel.git@master
- name: Install build tools for OSX
if: startsWith(matrix.os, 'macos')

View File

@@ -285,6 +285,10 @@ instance Monad P where
POk s a -> unP (k a) s
PFailed posn err -> PFailed posn err
#if !(MIN_VERSION_base(4,13,0))
-- Monad(fail) will be removed in GHC 8.8+
fail = Fail.fail
#endif
instance Fail.MonadFail P where
fail msg = P $ \(_,AI posn _ _) -> PFailed posn msg