Skip to content

Commit

Permalink
Changed directories of source files
Browse files Browse the repository at this point in the history
  • Loading branch information
joom committed Dec 20, 2014
1 parent befed17 commit b57e221
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
18 changes: 7 additions & 11 deletions Norvigs-Spelling-Corrector.cabal
@@ -1,16 +1,13 @@
-- Initial Norvigs-Spelling-Corrector.cabal generated by cabal init. For
-- further documentation, see http://haskell.org/cabal/users-guide/

name: Norvigs-Spelling-Corrector
version: 0.1.0.0
synopsis: A Haskell implementation of Peter Norvig's spelling corrector
-- description:
-- description:
homepage: https://github.com/MarcoSero/Norvigs-Spelling-Corrector
license: MIT
license-file: LICENSE
author: Marco Sero
maintainer: sero.marco@gmail.com
-- copyright:
-- copyright:
category: Text
build-type: Simple
extra-source-files: README.md
Expand All @@ -22,15 +19,14 @@ Library
build-depends: base >=4.7 && <4.8,
bytestring >=0.10 && <0.11,
containers >=0.5 && <0.6
-- hs-source-dirs:
hs-source-dirs: src
default-language: Haskell2010

executable Norvigs-Spelling-Corrector
main-is: Main.hs
other-modules: Spelling
-- other-extensions:
build-depends: base >=4.7 && <4.8,
bytestring >=0.10 && <0.11,
containers >=0.5 && <0.6
-- hs-source-dirs:
default-language: Haskell2010
containers >=0.5 && <0.6,
Norvigs-Spelling-Corrector
hs-source-dirs: execs
default-language: Haskell2010
4 changes: 3 additions & 1 deletion Main.hs → execs/Main.hs
@@ -1,8 +1,10 @@
module Main where

import Control.Monad (forever, unless)
import System.IO (hFlush, stdout)
import Control.Exception (catch)
import System.IO.Error (isEOFError)
import Spelling (TrainingDict, nWords, correct)
import Spelling

repl :: TrainingDict -> IO ()
repl ws = forever $ do
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit b57e221

Please sign in to comment.