Loading Modules into GHCi
module Practice where
triple x = 3 * x$ ghci
GHCi, version 8.10.2: https://www.haskell.org/ghc/ :? for help
{- Assuming our Practice.hs file is in the same directory from
which we launched GHCi -}
ghci> :load Practice.hs
[1 of 1] Compiling Practice ( Practice.hs, interpreted )
Ok, one module loaded.
*Practice> triple 3
9Last updated