Scaffolding update: minimal uses yesod-core
This commit is contained in:
parent
5c47486c86
commit
d1cfe481fd
@ -1,3 +1,7 @@
|
|||||||
|
## 1.4.3.9
|
||||||
|
|
||||||
|
* Scaffold update: minimal scaffold uses yesod-core instead of yesod [yesodweb/yesod-scaffold#65](https://github.com/yesodweb/yesod-scaffold/issues/65)
|
||||||
|
|
||||||
## 1.4.3.8
|
## 1.4.3.8
|
||||||
|
|
||||||
* Scaffold update: fix 404 for missing sourcemap
|
* Scaffold update: fix 404 for missing sourcemap
|
||||||
|
|||||||
@ -31,7 +31,7 @@ cabal.sandbox.config
|
|||||||
module Add where
|
module Add where
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
import Yesod
|
import Yesod.Core
|
||||||
|
|
||||||
getAddR :: Int -> Int -> Handler TypedContent
|
getAddR :: Int -> Int -> Handler TypedContent
|
||||||
getAddR x y = selectRep $ do
|
getAddR x y = selectRep $ do
|
||||||
@ -49,7 +49,7 @@ getAddR x y = selectRep $ do
|
|||||||
module Application where
|
module Application where
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
import Yesod
|
import Yesod.Core
|
||||||
|
|
||||||
import Add
|
import Add
|
||||||
import Home
|
import Home
|
||||||
@ -63,7 +63,7 @@ mkYesodDispatch "App" resourcesApp
|
|||||||
{-# LANGUAGE ViewPatterns #-}
|
{-# LANGUAGE ViewPatterns #-}
|
||||||
module Foundation where
|
module Foundation where
|
||||||
|
|
||||||
import Yesod
|
import Yesod.Core
|
||||||
|
|
||||||
data App = App
|
data App = App
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ instance Yesod App
|
|||||||
module Home where
|
module Home where
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
import Yesod
|
import Yesod.Core
|
||||||
|
|
||||||
getHomeR :: Handler Html
|
getHomeR :: Handler Html
|
||||||
getHomeR = defaultLayout $ do
|
getHomeR = defaultLayout $ do
|
||||||
@ -92,7 +92,7 @@ getHomeR = defaultLayout $ do
|
|||||||
{-# START_FILE Main.hs #-}
|
{-# START_FILE Main.hs #-}
|
||||||
import Application () -- for YesodDispatch instance
|
import Application () -- for YesodDispatch instance
|
||||||
import Foundation
|
import Foundation
|
||||||
import Yesod
|
import Yesod.Core
|
||||||
|
|
||||||
main :: IO ()
|
main :: IO ()
|
||||||
main = warp 3000 App
|
main = warp 3000 App
|
||||||
@ -115,7 +115,7 @@ executable PROJECTNAME
|
|||||||
ghc-options: -Wall -fwarn-tabs -O2
|
ghc-options: -Wall -fwarn-tabs -O2
|
||||||
|
|
||||||
build-depends: base
|
build-depends: base
|
||||||
, yesod
|
, yesod-core
|
||||||
|
|
||||||
ghc-options: -threaded -O2 -rtsopts -with-rtsopts=-N
|
ghc-options: -threaded -O2 -rtsopts -with-rtsopts=-N
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod-bin
|
name: yesod-bin
|
||||||
version: 1.4.3.7
|
version: 1.4.3.9
|
||||||
license: MIT
|
license: MIT
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Michael Snoyman <michael@snoyman.com>
|
author: Michael Snoyman <michael@snoyman.com>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user