Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. {-# LANGUAGE OverloadedStrings #-}
  2.  
  3. import Data.Monoid
  4. import Typed.Spreadsheet
  5.  
  6. celsius = spinButton "Celsius" 0.1
  7.  
  8. convert c = "Fahrenheit: " <> display (c * 9 / 5 + 32)
  9.  
  10. main = textUI "Celsius to Fahrenheit converter" (fmap convert celsius)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement