Test functions you create in Haskell

0

You will see an ubuntu emulator installed 1 year ago and now that I am studying in the faculty we do functions in haskell and they will see, I forget how to try the functions that I create in the .hs file and test them in the haskell terminal.

I hope to make myself understood, I have ghci installed but I do not remember the procedure to be able to use those functions that I created , thanks in advance.

    
asked by Salvador 22.09.2018 в 23:10
source

1 answer

1
  • Navigate to where you saved it and run ghci from there.
  • Once inside GHCi, type :l baby . Now that your code is loaded, you can play with the functions you have defined.
  • The functions in GHCi are called by their name followed by their parameters such that: doubleMe 9
  • If you want + info, you have it here: Haskell Tutorial

    You already tell us that such .. and welcome to SOe!

        
    answered by 22.09.2018 в 23:25