Skip to content

Commit

Permalink
Fix GHC 7.10.2 compatibility by using GHC.OldList.foldr
Browse files Browse the repository at this point in the history
  • Loading branch information
rcook committed Dec 25, 2015
1 parent 5a914df commit 497d02d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/NetworkServer/haskell/src/Data/TicTacToe.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module Data.TicTacToe where

import Prelude hiding (any, all, mapM, concat)
import qualified GHC.OldList as L
import Test.QuickCheck
import Data.Map (Map, singleton)
import qualified Data.Map as M
Expand Down Expand Up @@ -176,7 +177,7 @@ instance Arbitrary Board where
arbitrary = do
p <- arbitrary
ps <- arbitrary
return $ foldr propell (start p) ps
return $ L.foldr propell (start p) ps

propell :: Position -> Board -> Board
propell p b =
Expand Down

0 comments on commit 497d02d

Please sign in to comment.