Skip to content

Commit

Permalink
Cleanup imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
rudymatela committed Jul 5, 2019
1 parent c4a89b5 commit af4e76d
Show file tree
Hide file tree
Showing 16 changed files with 8 additions and 27 deletions.
1 change: 0 additions & 1 deletion bench/arithficial.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Test.Speculate
import System.Environment (getArgs)

-- How well does this tool performs on artificial operators
f :: Num a => a -> a -> a
Expand Down
1 change: 0 additions & 1 deletion eg/binarytree.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{-# Language DeriveDataTypeable, StandaloneDeriving #-} -- for GHC <= 7.8
-- Colin Runciman, December 2016
import Test.Speculate
import Test.LeanCheck
import Data.Function (on)


Expand Down
1 change: 0 additions & 1 deletion eg/binarytree0.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{-# Language DeriveDataTypeable, StandaloneDeriving #-} -- for GHC <= 7.8
-- Colin Runciman, December 2016
import Test.Speculate
import Test.LeanCheck
import Data.Function (on)


Expand Down
1 change: 0 additions & 1 deletion eg/bool.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Test.Speculate
import Test.LeanCheck ((==>))

main :: IO ()
main = speculate args
Expand Down
2 changes: 0 additions & 2 deletions eg/colour.hs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{-# LANGUAGE DeriveDataTypeable, StandaloneDeriving #-} -- for GHC < 7.10
import Test.Speculate
import Test.Speculate.Utils.Colour
import Test.LeanCheck
import Data.Ratio
import Data.Function (on)
import Test.Speculate.Sanity

deriving instance Typeable Colour -- for GHC < 7.10

Expand Down
3 changes: 0 additions & 3 deletions eg/digraphs.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{-# LANGUAGE CPP, DeriveDataTypeable, StandaloneDeriving #-} -- for GHC < 7.10
import Test.Speculate
import Test.LeanCheck hiding ((\/))
import Test.LeanCheck.Utils
import Data.Function (on)

import Digraph

Expand Down
2 changes: 1 addition & 1 deletion eg/fun.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Test.Speculate
import Test.Speculate.Function.A100
import Test.Speculate.Function.A100()

main :: IO ()
main = speculate args
Expand Down
2 changes: 1 addition & 1 deletion eg/monad.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Test.Speculate
import Test.Speculate.Function.A100
import Test.Speculate.Function.A100()

import Control.Monad ((>=>))

Expand Down
1 change: 0 additions & 1 deletion eg/pretty.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{-# LANGUAGE CPP #-}
{-# Language DeriveDataTypeable, StandaloneDeriving #-} -- for GHC < 7.10
import Test.Speculate
import Test.LeanCheck
import Data.Function (on)
import Data.List (isPrefixOf)

Expand Down
1 change: 0 additions & 1 deletion eg/regexes.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import Test.Speculate
import Test.Speculate.Utils.Memoize
import Data.Function (on)
import Regex
import Data.Maybe (fromJust)

instance Listable Symbol where
list = [Symbol 'a', Symbol 'b', Symbol 'c']
Expand Down
1 change: 0 additions & 1 deletion eg/tauts.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import Test.Speculate hiding (Name(..))
import qualified Test.Speculate as S
import Taut hiding (main)
import Test.LeanCheck

deriveListable ''Prop
deriveListable ''Name
Expand Down
2 changes: 1 addition & 1 deletion src/Test/Speculate/CondReason.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Test.Speculate.Expr
import Test.Speculate.Reason
import qualified Test.Speculate.Utils.Digraph as D
import Test.Speculate.Utils.Digraph (Digraph)
import Data.Maybe (mapMaybe,maybeToList,fromMaybe)
import Data.Maybe (maybeToList,fromMaybe)
import Data.List (lookup, sortBy)
import Data.Function (on)
import Data.Functor ((<$>)) -- for GHC < 7.10
Expand Down
2 changes: 1 addition & 1 deletion src/Test/Speculate/Function.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module Test.Speculate.Function
where

import Test.Speculate
import Test.LeanCheck.Function
import Test.LeanCheck.Function()
import Test.LeanCheck.Error (errorToNothing)
import Data.Function (on)

Expand Down
2 changes: 0 additions & 2 deletions src/Test/Speculate/Pretty.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import Test.Speculate.Reason (Thy, finalEquations)
import Test.Speculate.SemiReason (Shy, finalSemiEquations)
import Test.Speculate.CondReason (Chy, finalCondEquations)

import Data.Typeable (typeOf, TypeRep)

type Equation = (Expr,Expr)
type CondEquation = (Expr,Expr,Expr)

Expand Down
8 changes: 4 additions & 4 deletions src/Test/Speculate/Reason.hs
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ import Test.Speculate.Expr
import Test.Speculate.Reason.Order
import Test.Speculate.Utils
import Data.Either
import Data.Tuple (swap)
import Data.List (partition, (\\), sortBy, sort)
import Data.Function (on)
import Data.Monoid ((<>))
import Data.Functor ((<$>)) -- for GHC < 7.10
import Data.List (partition, (\\), sortBy, sort)
import Data.Maybe
import Data.Monoid ((<>))
import Data.Tuple (swap)
import qualified Data.List as L (insert)
import Data.Maybe (fromJust,isJust,listToMaybe,maybeToList,mapMaybe)
import Control.Monad

type Rule = (Expr,Expr)
Expand Down
5 changes: 0 additions & 5 deletions tests/test-stats.hs
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
-- Test library
import Test

-- Helper
import Data.Function (on)

-- Functions under test
import Test.Speculate
import Test.Speculate.Expr
import Test.Speculate.Reason
import Test.Speculate.Utils

Expand Down

0 comments on commit af4e76d

Please sign in to comment.