Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. data TextEditor = TextEditor([Char],[Char],[Char],[Char]) deriving (Show)
  2.  
  3. --
  4. test::TextEditor --create a new text editor
  5. test = (['H','e','l','l','o',' '],['s','e','l','e','c','t','e','d'], ['W','o','r','l','d'],['c','l','i','p','b','o','a','r','d']) --set the values of the new text editor to be Hello |World where "|" is the cursor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement