mirror of
https://github.com/Lysxia/generic-random.git
synced 2024-09-11 06:35:24 +03:00
Fix warnings in examples
This commit is contained in:
parent
d202e04550
commit
1b5b102a79
@ -16,7 +16,7 @@ executable generic-example
|
||||
|
||||
executable text-example
|
||||
main-is: text.hs
|
||||
ghc-options: -Wall
|
||||
ghc-options: -Wall -Wno-orphans -Wno-unused-top-binds
|
||||
if impl(ghc < 7.10)
|
||||
ghc-options: -fcontext-stack=30
|
||||
build-depends:
|
||||
@ -28,7 +28,7 @@ executable text-example
|
||||
|
||||
executable tour-example
|
||||
main-is: tour.hs
|
||||
ghc-options: -Wall
|
||||
ghc-options: -Wall -Wno-orphans -Wno-unused-imports
|
||||
if impl(ghc < 7.10)
|
||||
ghc-options: -fcontext-stack=30
|
||||
build-depends:
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
import GHC.Generics (Generic)
|
||||
import Test.QuickCheck
|
||||
import Generic.Random.Generic
|
||||
import Generic.Random
|
||||
|
||||
data Tree a = Leaf | Node (Tree a) a (Tree a)
|
||||
deriving (Show, Generic)
|
||||
|
@ -11,7 +11,7 @@
|
||||
{-# LANGUAGE FlexibleInstances #-}
|
||||
|
||||
import Data.Char (isAlphaNum)
|
||||
import Data.Text as T (Text, pack, unpack, null)
|
||||
import Data.Text as T (Text, pack, unpack)
|
||||
import GHC.Generics (Generic)
|
||||
import Test.QuickCheck
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user