Created
February 8, 2016 10:16
-
-
Save akhileshs/4f2acd6cdc6d75e0aff3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
import Data.Monoid | |
import Typed.Spreadsheet | |
celsius = spinButton "Celsius" 0.1 | |
convert c = "Fahrenheit: " <> display (c * 9 / 5 + 32) | |
main = textUI "Celsius to Fahrenheit converter" (fmap convert celsius) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment