mardi 29 octobre 2019

How can I run multiple statements in GHCi?

I'm doing some performance testing of a simple function.

Currently I'm running multiple statements which is tedious to repeat:

ghci> myfunction 0 100
true
ghci> myfunciton 0 200
true
ghci> myfunction 0 300
true
ghci> :r

Is there a way I can run all four GHCi statements? I can't just combine them using "native" Haskell as I'd like to include the :r that gets run at the end.

Aucun commentaire:

Enregistrer un commentaire