Advertisement
Guest User

Untitled

a guest
Oct 6th, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. data Tester = Tester [Example] deriving(Eq, Show)
  2. data Example = Example Property deriving(Eq, Show)
  3. type Property = Integer
  4. exampleOne = Example 1
  5. exampleTwo = Example 2
  6. theTester = Tester [exampleOne, exampleTwo]
  7.  
  8. changeValue (Tester [Example value]) newValue = Tester [Example newValue]
  9. changeValue (Tester ((Example value):xs)) newValue = Tester [Example newValue] ++ changeValue (Tester xs)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement