Skip to content

forth: Change stub to be able to run the tests. #426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions exercises/forth/HINTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ and implement the following functions:
- `toList` returns the current stack as a list, with the element on top
of the stack being the rightmost (last) element.

You will find the type signatures already in place, but it is up to you
to define the functions.
You will find a dummy data declaration and type signatures already in place,
but it is up to you to define the functions and create a meaningful data type,
newtype or type synonym.
2 changes: 2 additions & 0 deletions exercises/forth/src/Forth.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ data ForthError
| UnknownWord Text
deriving (Show, Eq)

data ForthState = Dummy

empty :: ForthState
empty = undefined

Expand Down