- Create a new project quadratic using the following command:
stack new quadratic
Change into the project folder.
- Delete src/Lib.hs and create a new file src/Quadratic.hs to represent the quadratic equation and its solution.
- Open the quadratic.cabal file, and in the section library, replace Lib by Quadratic in the tag exposed-modules:
library hs-source-dirs: src exposed-modules: Quadratic build-depends: base >= 4.7 && < 5 default-language: Haskell2010