Real World Haskell – Chapter 3

These are the exercises from chapter 3 ofReal World Haskellby Bryan O’Sullivan, Don Stewart, and John Goerzen> module RWHChapter3 where{-# OPTIONS_GHC -XMagicHash #-}Some useful things to check my work:> import Test.QuickCheck> import Data.List> import GHC.Prim> import GHC.Base1) Write a function that computes the number of elements in a list. To test it, ensure that it […]