Fix warnings in examples

This commit is contained in:
lyxia 2018-01-05 14:12:19 -05:00
parent d202e04550
commit 1b5b102a79
3 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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)

View File

@ -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