I'm trying to build a function in Haskell. I created a plain text file with the following function:
doubleme x = x + x
I saved it under baby.txt.
I navigated to the file from the command line, then I did the following from the command line:
ghci
Prelude> :l baby
it returned:
target ‘baby’ is not a module name or a source file
I was wondering what I'm doing wrong and how to make the function compile?