olwrapper 0.3.7.3 → 0.3.7.4
raw patch · 2 files changed
+23/−1 lines, 2 files
Files
- olwrapper.cabal +3/−1
- src/Application.hs +20/−0
olwrapper.cabal view
@@ -1,5 +1,5 @@ Name: olwrapper-Version: 0.3.7.3+Version: 0.3.7.4 Synopsis: An OpenLayers JavaScript Wrapper and Webframework with snaplet-fay Description: test Author: Thomas Edelmann@@ -28,6 +28,8 @@ other-modules: Tutorial.OlApp Tutorial.Traffic+ Application+ Main Site other-extensions: build-depends:
+ src/Application.hs view
@@ -0,0 +1,20 @@+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE TemplateHaskell #-}++module Application where++import Control.Lens+import Snap.Snaplet+import Snap.Snaplet.Heist+import Snap.Snaplet.Fay++data App = App { + _heist :: Snaplet (Heist App)+ , _fay :: Snaplet Fay+ }++makeLenses ''App++instance HasHeist App where heistLens = subSnaplet heist++type AppHandler = Handler App App