-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replace ClassyPrelude with RIO in simple #194
base: simple
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/stack.yaml | ||
dist* | ||
static/tmp/ | ||
static/combined/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,17 @@ version: "0.0.0" | |
dependencies: | ||
|
||
- base >=4.9.1.0 && <5 | ||
|
||
- yesod >=1.6 && <1.7 | ||
- yesod-core >=1.6 && <1.7 | ||
- yesod-static >=1.6 && <1.7 | ||
- yesod-form >=1.6 && <1.7 | ||
- classy-prelude >=1.5 && <1.6 | ||
- classy-prelude-conduit >=1.5 && <1.6 | ||
- classy-prelude-yesod >=1.5 && <1.6 | ||
|
||
- rio >= 0.1.8.0 | ||
- http-types | ||
- persistent | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This dependency and the next shouldn't be included in an actual |
||
- yesod-newsfeed | ||
|
||
- bytestring >=0.10 && <0.11 | ||
- text >=0.11 && <2.0 | ||
- template-haskell | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,35 @@ | ||
{-# LANGUAGE CPP #-} | ||
{-# LANGUAGE CPP #-} | ||
{-# LANGUAGE NoImplicitPrelude #-} | ||
|
||
module Import.NoFoundation | ||
( module Import | ||
( module X | ||
) where | ||
|
||
import ClassyPrelude.Yesod as Import | ||
import Settings as Import | ||
import Settings.StaticFiles as Import | ||
import Yesod.Core.Types as Import (loggerSet) | ||
import Yesod.Default.Config2 as Import | ||
import RIO.Yesod as X | ||
import Data.Default as X (Default (..)) | ||
import Database.Persist.Sql as X (runMigration) | ||
import Database.Persist.Sql as X (SqlBackend, SqlPersistT) | ||
import Network.HTTP.Client.Conduit as X hiding (Proxy(..)) | ||
import Network.HTTP.Types as X | ||
import Settings as X | ||
import Settings.StaticFiles as X | ||
import Yesod as X | ||
hiding | ||
( Header | ||
, parseTime | ||
, LogLevel(..) | ||
, logDebug | ||
, logDebugS | ||
, logError | ||
, logErrorS | ||
, logInfo | ||
, logInfoS | ||
, logOther | ||
, logOtherS | ||
, logWarn | ||
, logWarnS | ||
) | ||
import Yesod.Core.Types as X (loggerSet) | ||
import Yesod.Default.Config2 as X | ||
import Yesod.Feed as X | ||
import Yesod.Static as X |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module RIO.Yesod | ||
( module RIO | ||
) where | ||
|
||
import RIO | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder if it would be possible to provide a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let me get back to you n that — probably on Friday. |
||
hiding | ||
( Handler(..) | ||
-- , LogLevel(..) | ||
-- , LogSource | ||
-- , logDebug | ||
-- , logDebugS | ||
-- , logError | ||
-- , logErrorS | ||
-- , logInfo | ||
-- , logInfoS | ||
-- , logOther | ||
-- , logOtherS | ||
-- , logWarn | ||
-- , logWarnS | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be included in a template, we'll want the users of the template to check in their
stack.yaml
file.