September 2017
Beginner to intermediate
396 pages
9h 46m
English
stack new working-with-existentials simple
{-# LANGUAGE ExistentialQuantification, StandaloneDeriving #-} module Main where
data Display = forall a . Show a => Display a
deriving instance Show Display
displayList :: [Display] displayList = [ Display 10 , Display ["One","Two","Three"] , Display 10.0 , Display (Just "Something") , Display True ] ...
Read now
Unlock full access