Skip to content

Commit

Permalink
Fix imports for issue #19
Browse files Browse the repository at this point in the history
  • Loading branch information
tonymorris committed Oct 24, 2013
1 parent 91a7725 commit 4a78f15
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .ghci
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
:set -Wall
:set -fno-warn-unused-binds
:set -fno-warn-unused-do-bind
:set -fno-warn-unused-imports
:set -fno-warn-type-defaults

1 change: 1 addition & 0 deletions course.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ library
ghc-options: -Wall
-fno-warn-unused-binds
-fno-warn-unused-do-bind
-fno-warn-unused-imports
-fno-warn-type-defaults

hs-source-dirs: src
Expand Down
2 changes: 2 additions & 0 deletions src/Algorithm/Cheque.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ data structures that may assist you in deriving the result. It is not compulsory

module Algorithm.Cheque where

import Data.Maybe
import Data.Char
import Data.List
import Control.Applicative

Expand Down
2 changes: 2 additions & 0 deletions src/Algorithm/FastAnagrams.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ module Algorithm.FastAnagrams where

import Data.Char
import Data.Function
import qualified Data.Set as S
import Data.List

-- Return all anagrams of the given string
-- that appear in the given dictionary file.
Expand Down
1 change: 1 addition & 0 deletions src/IO/Interactive.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module IO.Interactive where
import Core
import Monad.Functor
import Monad.Monad
import Data.Char
import Structure.List
import Intro.Optional

Expand Down
3 changes: 3 additions & 0 deletions src/Monad/State.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@
module Monad.State where

import Core
import qualified Prelude as P
import Data.Char
import Intro.Optional
import Structure.List
import Monad.Functor
import Monad.Monad
import qualified Data.Foldable as F
import qualified Data.Set as S

-- $setup
-- >>> import Test.QuickCheck.Function
Expand Down
2 changes: 2 additions & 0 deletions src/Monad/StateT.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import Intro.Optional
import Structure.List
import Monad.Functor
import Monad.Monad
import Monad.State
import qualified Data.Set as S

-- | A `StateT` is a function from a state value `s` to a functor f of (a produced value `a`, and a resulting state `s`).
newtype StateT s f a =
Expand Down
3 changes: 3 additions & 0 deletions src/Parser/JsonParser.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
module Parser.JsonParser where

import Parser.Parser
import Parser.MoreParser
import Numeric
import Parser.JsonValue
import Control.Applicative

-- Exercise 1
-- | Parse a JSON string. Handle double-quotes, control characters, hexadecimal characters.
Expand Down
3 changes: 3 additions & 0 deletions src/Parser/MoreParser.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
module Parser.MoreParser where

import Parser.Parser
import Data.Char
import Numeric
import Control.Monad

-- $setup
-- >>> import Parser.Parser(isErrorResult, character, lower, is)
Expand Down
1 change: 1 addition & 0 deletions src/Parser/Parser.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module Parser.Parser where

import Data.Char
import Control.Applicative
import Parser.Person

Expand Down
1 change: 1 addition & 0 deletions src/Structure/BKTree.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import Structure.MetricSpace
import Data.Map(Map)
import qualified Data.Map as M
import Data.Foldable
import qualified Data.Foldable as F
import Data.Monoid

data BKTree a =
Expand Down

0 comments on commit 4a78f15

Please sign in to comment.