Advertisement
sword_smith

nested where expressions

May 25th, 2018
476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. values :: [a]
  2. values = value0 ++ value1
  3.   where
  4.     value0 =
  5.       valueA
  6.       ++ valueB
  7.     value1 =
  8.       valueA
  9.       ++ valueC
  10.       where
  11.         valueA = ...
  12.         valueB = ...
  13.         valueC = ...
  14.  
  15. -- Problem: only value1 has valueA, valueB, valueC in scope
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement