SCALA -> HASKELL SYNTAX ADT - Product Type case class Status(code: Int, statusMessage: String) -> data Status = Status { code :: Int, statusMessage :: String } 2 . 3
SCALA -> HASKELL SYNTAX ADT - Sum Type sealed trait Result object Success extends Result object Failed extends Result -> data Result = Success | Failed 2 . 4
SCALA -> HASKELL SYNTAX Pattern Matching def check(r : Result) = r match { case Failed => "Failed" case Success => "Success" } -> r = Success case r of Success -> "Success" Failed -> "Failed" 2 . 5
1. Add new dependencies to and into Cabal File http-conduit, bytestring 2. Add Language Extension: OverloadedStrings Network.HTTP.Simple Data.ByteString 4 . 1
1. Add new dependencies to and into Cabal File http-conduit, bytestring 2. Add Language Extension: OverloadedStrings 2. Build the project Network.HTTP.Simple Data.ByteString 4 . 1
1. Add new dependencies to and into Cabal File http-conduit, bytestring 2. Add Language Extension: OverloadedStrings 2. Build the project 3. Run GHCI with the dependencies: stack exec ghci Network.HTTP.Simple Data.ByteString 4 . 1