Clean things up a bit

This commit is contained in:
Steven Dee 2013-10-20 21:57:27 -04:00
parent c91a108699
commit 3d78b81736
8 changed files with 53 additions and 26 deletions

7
Language/Nock5K.hs Normal file
View File

@ -0,0 +1,7 @@
module Language.Nock5K (
Noun(Atom, (:-)), nock, noun, repl
) where
import Language.Nock5K.Parse
import Language.Nock5K.Repl
import Language.Nock5K.Spec

View File

@ -1,7 +1,7 @@
module Nock5K.Parse (noun) where
module Language.Nock5K.Parse where
import Control.Applicative ((<$>))
import Nock5K.Spec
import Language.Nock5K.Spec
import Text.ParserCombinators.Parsec
instance Show Noun where

View File

@ -1,7 +1,7 @@
module Nock5K.Repl (repl) where
module Language.Nock5K.Repl where
import Nock5K.Parse
import Nock5K.Spec
import Language.Nock5K.Parse
import Language.Nock5K.Spec
import qualified Control.Exception as C
import System.Console.Readline
import Text.ParserCombinators.Parsec

View File

@ -1,5 +1,5 @@
> module Nock5K.Spec (Noun (Atom, (:-)), nock) where
> module Language.Nock5K.Spec where
1 Structures

View File

@ -1,17 +1,38 @@
name: hsnock
version: 0.1.0.0
synopsis: Nock 5K interpreter
author: Steven Dee
maintainer: mrdomino@gmail.com
category: Language
build-type: Simple
cabal-version: >=1.8
name : hsnock
version : 0.1.1
category : Language
license : PublicDomain
synopsis : Nock 5K interpreter.
author : Steven Dee
maintainer : mrdomino@gmail.com
homepage : https://github.com/mrdomino/hsnock/
build-type : Simple
cabal-version : >=1.8
data-files : README
source-repository head
type : git
location : https://github.com/mrdomino/hsnock.git
library
build-depends : base >=4.5
, parsec >=3.1
, readline >=1.0
exposed-modules : Language.Nock5K
, Language.Nock5K.Parse
, Language.Nock5K.Spec
, Language.Nock5K.Repl
executable hsnock
main-is : hsnock.lhs
build-depends : base >=4.5
, parsec >=3.1
, readline >=1.0
test-suite test
type: exitcode-stdio-1.0
main-is: test.hs
build-depends: base >=4.5, parsec >=3.1, QuickCheck >=2.6
executable hsnock
main-is: nock.hs
build-depends: base >=4.5, parsec >=3.1, readline >=1.0
type : exitcode-stdio-1.0
main-is : test.hs
build-depends : base >=4.5
, parsec >=3.1
, QuickCheck >=2.6

3
hsnock.lhs Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env runhaskell
> import Language.Nock5K
> main = repl

View File

@ -1,3 +0,0 @@
#!/usr/bin/env runhaskell
import Nock5K.Repl
main = repl

View File

@ -1,6 +1,5 @@
import Control.Applicative
import Nock5K.Parse
import Nock5K.Spec
import Language.Nock5K
import Test.QuickCheck
import Text.ParserCombinators.Parsec (parse)
import Text.Printf