Frontend.App should return a Widget
commitcbd72777ed77253b5682704aa965c6669d0faf99
authorLuigy Leon <luigy@outlook.com>
dateTue 24 Apr 2018, 15:31 (8 years ago)
parent7dd148b
skeleton/frontend/src/Frontend/App.hs+3−2
@@ -6,7 +6,8 @@ module Frontend.App where
66import Reflex.Dom
77import Static
88
9−frontend :: IO ()
10−frontend = mainWidget $ do
9+frontend :: Widget x ()
10+frontend = do
1111 text "Welcome to Obelisk!"
1212 elAttr "img" ("src" =: static @"obelisk.jpg") blank
13+
skeleton/frontend/src/main.hs+3−1
@@ -1,4 +1,6 @@
1+import Reflex.Dom
2+
13import Frontend.App
24
35main :: IO ()
4−main = frontend
6+main = mainWidget frontend