haskell-tour

example workflow

Prerequisites

Usage

  1. Clone the repo

  2. Go to "palindrome-testing" directory

  3. Build and run the project:

     $ stack setup
     $ stack build
    
  4. Run GHC's interactive environment:

     $ stack ghci
    
  5. Test function with different arguments. See examples:

     > isPalindrome "rotor"
     True
    
     > isPalindrome "robot"
     False
    
     > :q
     Leaving GHCi.
     $
    

Run the test suite

  1. Run unit tests:

     $ stack test