mirror of
https://github.com/HuwCampbell/grenade.git
synced 2024-11-22 06:55:13 +03:00
Builds warning free with both ghc 7.10 and 8.0 now
Also: * Upgrade mafia. * Cabal file: Relax QuickCheck dependency bounds.
This commit is contained in:
parent
047ee6a08c
commit
b4df23ef3e
@ -54,7 +54,7 @@ and the tests run using:
|
|||||||
./mafia test
|
./mafia test
|
||||||
```
|
```
|
||||||
|
|
||||||
Grenade is currently known to build with ghc 7.10. We are working on making it build with ghc 8.0.
|
Grenade is currently known to build with ghc 7.10 and 8.0.
|
||||||
|
|
||||||
|
|
||||||
Thanks
|
Thanks
|
||||||
|
@ -97,5 +97,5 @@ test-suite test
|
|||||||
, hmatrix
|
, hmatrix
|
||||||
, mtl
|
, mtl
|
||||||
, text == 1.2.*
|
, text == 1.2.*
|
||||||
, QuickCheck == 2.7.*
|
, QuickCheck >= 2.7 && < 2.9
|
||||||
, quickcheck-instances == 0.3.*
|
, quickcheck-instances == 0.3.*
|
||||||
|
2
mafia
2
mafia
@ -118,4 +118,4 @@ case "$MODE" in
|
|||||||
upgrade) shift; run_upgrade "$@" ;;
|
upgrade) shift; run_upgrade "$@" ;;
|
||||||
*) exec_mafia "$@"
|
*) exec_mafia "$@"
|
||||||
esac
|
esac
|
||||||
# Version: dbbe635d8f98be1815130f04465c155f414985bf
|
# Version: a1b39ee8ac1969ed2e891b9062d079be75863e99
|
||||||
|
@ -25,7 +25,7 @@ train :: forall m i o hs. (Monad m, Head hs ~ i, Last hs ~ o, KnownShape i, Know
|
|||||||
-> m (Network m hs)
|
-> m (Network m hs)
|
||||||
train rate x0 target = fmap fst . go x0
|
train rate x0 target = fmap fst . go x0
|
||||||
where
|
where
|
||||||
go :: forall m' j js. (Monad m', Head js ~ j, Last js ~ o, KnownShape j, KnownShape o)
|
go :: forall m' j js. (Monad m', Head js ~ j, Last js ~ o, KnownShape j)
|
||||||
=> S' j -- ^ input vector
|
=> S' j -- ^ input vector
|
||||||
-> Network m' js -- ^ network to train
|
-> Network m' js -- ^ network to train
|
||||||
-> m' (Network m' js, S' j)
|
-> m' (Network m' js, S' j)
|
||||||
|
@ -11,6 +11,10 @@
|
|||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
{-# LANGUAGE FlexibleInstances #-}
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
|
|
||||||
|
-- Ghc 8.0 gives a warning on `(+) _ _ = error ...` but ghc 7.10 fails to
|
||||||
|
-- compile without this default pattern.
|
||||||
|
{-# OPTIONS_GHC -fno-warn-overlapping-patterns #-}
|
||||||
|
|
||||||
module Grenade.Core.Shape (
|
module Grenade.Core.Shape (
|
||||||
Shape (..)
|
Shape (..)
|
||||||
, S' (..)
|
, S' (..)
|
||||||
|
Loading…
Reference in New Issue
Block a user