Popularity
6.1
Growing
Activity
0.0
Stable
12
3
5
Monthly Downloads: 4
Programming language: Haskell
License: MIT License
Tags:
Language
haskell-brainfuck alternatives and similar packages
Based on the "Language" category.
Alternatively, view haskell-brainfuck alternatives based on common mentions on social networks and blogs.
-
stylish-haskell
DISCONTINUED. Haskell code prettifier [Moved to: https://github.com/haskell/stylish-haskell] -
ministg
Ministg is an interpreter for a high-level, small-step, operational semantics for the STG machine.
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
Promo
coderabbit.ai
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of haskell-brainfuck or a related project?
README
haskell-brainfuck
Interpreter for the brainfuck programming language
haskel-brainfuck is distributed as a library, but it also includes an executable to run brainfuck programs. You can find haskell-brainfuck in Hackage
Usage
Library
import HaskBF.Eval
import qualified Data.ByteString.Lazy as BS
import Control.Monad.State
main = do
-- The following will evaluate the file using stdin and stdout for I/O.
-- Evaluation results in an EvalResult
file <- BS.readFile "/path/to/file.bf"
(EvalSuccess _) <- evalBS defaultIOMachine file
print "ok"
-- The following will evaluate the file using the State monad and input
-- provided by input
let input = []
output = []
result = execState (evalStr simulatorMachine "+.>-.") (SimState input output)
print $ simStateOutput result == [1, -1]
Executable
brainfuck fib.bf
Tests
You can run the test suite with
cabal test