Sha256: 410e8d9a1d9d15769c9ad084d552c15e6fe593911bbd3205f4bba20ac18b4626

Contents?: true

Size: 585 Bytes

Versions: 52

Compression:

Stored size: 585 Bytes

Contents

{-# LANGUAGE OverloadedStrings #-}

module Forth
  ( ForthError(..)
  , ForthState
  , evalText
  , toList
  , empty
  ) where

import Data.Text (Text)

data ForthError
     = DivisionByZero
     | StackUnderflow
     | InvalidWord
     | UnknownWord Text
     deriving (Show, Eq)

data ForthState = Dummy

empty :: ForthState
empty = error "You need to implement this function."

evalText :: Text -> ForthState -> Either ForthError ForthState
evalText = error "You need to implement this function."

toList :: ForthState -> [Int]
toList = error "You need to implement this function."

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
trackler-2.0.6.43 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.6.42 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.6.41 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.6.40 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.6.39 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.6.38 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.6.37 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.6.36 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.6.35 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.6.34 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.6.33 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.6.32 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.6.31 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.6.30 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.6.29 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.6.28 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.6.27 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.6.26 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.6.25 tracks/haskell/exercises/forth/src/Forth.hs
trackler-2.0.6.24 tracks/haskell/exercises/forth/src/Forth.hs