packages feed

threepenny-gui 0.3.0.0 → 0.3.0.1

raw patch · 2 files changed

+7/−6 lines, 2 filesdep ~network

Dependency ranges changed: network

Files

src/CurrencyConverter.hs view
@@ -8,7 +8,7 @@ import Control.Monad (void) import Data.Maybe import Text.Printf-import Text.Read     (readMaybe)+import Safe          (readMay)  #ifdef CABAL import qualified "threepenny-gui" Graphics.UI.Threepenny as UI@@ -42,7 +42,7 @@     dollarIn <- stepper "0" $ UI.valueChange dollar     let         rate = 0.7 :: Double-        withString f = maybe "-" (printf "%.2f") . fmap f . readMaybe+        withString f = maybe "-" (printf "%.2f") . fmap f . readMay              dollarOut = withString (/ rate) <$> euroIn         euroOut   = withString (* rate) <$> dollarIn
threepenny-gui.cabal view
@@ -1,5 +1,5 @@ Name:                threepenny-gui-Version:             0.3.0.0+Version:             0.3.0.1 Synopsis:            GUI framework that uses the web browser as a display. Description:     Threepenny-GUI is a GUI framework that uses the web browser as a display.@@ -31,7 +31,7 @@ License-file:        LICENSE Author:              Chris Done, Heinrich Apfelmus Maintainer:          Heinrich Apfelmus <apfelmus at quantentunnel dot de>-Homepage:            http://github.com/HeinrichApfelmus/threepenny-gui+Homepage:            http://www.haskell.org/haskellwiki/Threepenny-gui Category:            Web, GUI Build-type:          Simple Cabal-version:       >=1.8@@ -84,8 +84,8 @@   Build-depends:     base                      >= 4     && < 5                     ,snap-server                     ,snap-core-                    ,websockets-                    ,websockets-snap+                    ,websockets == 0.7.*+                    ,websockets-snap == 0.7.*                     ,text                     ,safe                     ,containers@@ -134,6 +134,7 @@         cpp-options:       -DCABAL         build-depends:     base                      >= 4     && < 5                           ,threepenny-gui+                          ,safe     else         buildable: False     main-is:           CurrencyConverter.hs