Skip to content

Problems with Flite examples. #33

@VitorCBSB

Description

@VitorCBSB

Hello, I've been trying to run the examples in Flite, but some of them are giving unexpected results. For instance, the Fibonacci one gives the following output:

C:\Users\VitorCBSB\Reduceron\flite>stack exec -- flite examples/Fib.hs
fib(10) =

If I compile it to C and run it, these are the results:

C:\Users\VitorCBSB\Reduceron\flite>stack exec -- flite -c examples/Fib.hs > Fib.c

C:\Users\VitorCBSB\Reduceron\flite>gcc Fib.c -o Fib

C:\Users\VitorCBSB\Reduceron\flite>Fib
fib(10) = ERROR: bottom!

I have also found problems with Taut.hs (empty output) and Countdown.hs (either doesn't stop running or takes a long time). Sudoku.hs, however, apparently works correctly. Have not attempted to run the others yet.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions