Merge pull request #1654 from juanpaucar/remove_typeable
Remove unnecessary Typeable deriving, Solves #1653
This commit is contained in:
commit
873bee0cfa
@ -1,4 +1,3 @@
|
|||||||
{-# LANGUAGE DeriveDataTypeable #-}
|
|
||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
{-# LANGUAGE GADTs #-}
|
{-# LANGUAGE GADTs #-}
|
||||||
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
|
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
|
||||||
@ -15,7 +14,6 @@ import Data.Yaml
|
|||||||
import Data.Text (Text)
|
import Data.Text (Text)
|
||||||
import qualified Data.Text.Encoding as TE
|
import qualified Data.Text.Encoding as TE
|
||||||
import qualified Data.Text.Lazy.Encoding as LTE
|
import qualified Data.Text.Lazy.Encoding as LTE
|
||||||
import Data.Typeable (Typeable)
|
|
||||||
import Database.Persist.Sqlite
|
import Database.Persist.Sqlite
|
||||||
import Database.Persist.TH
|
import Database.Persist.TH
|
||||||
import Network.Mail.Mime
|
import Network.Mail.Mime
|
||||||
@ -37,7 +35,6 @@ User
|
|||||||
verkey Text Maybe -- Used for resetting passwords
|
verkey Text Maybe -- Used for resetting passwords
|
||||||
verified Bool
|
verified Bool
|
||||||
UniqueUser email
|
UniqueUser email
|
||||||
deriving Typeable
|
|
||||||
|]
|
|]
|
||||||
|
|
||||||
data App = App
|
data App = App
|
||||||
|
|||||||
@ -1,3 +1,7 @@
|
|||||||
|
## 1.6.0.2
|
||||||
|
|
||||||
|
* Remove unnecessary deriving of Typeable
|
||||||
|
|
||||||
## 1.6.0.1
|
## 1.6.0.1
|
||||||
|
|
||||||
* Compile with GHC 8.6 [#1561](https://github.com/yesodweb/yesod/pull/1561)
|
* Compile with GHC 8.6 [#1561](https://github.com/yesodweb/yesod/pull/1561)
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
{-# LANGUAGE DeriveDataTypeable, OverloadedStrings, QuasiQuotes #-}
|
{-# LANGUAGE OverloadedStrings, QuasiQuotes #-}
|
||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
{-# LANGUAGE LambdaCase #-}
|
{-# LANGUAGE LambdaCase #-}
|
||||||
{-# LANGUAGE RankNTypes #-}
|
{-# LANGUAGE RankNTypes #-}
|
||||||
@ -32,7 +32,7 @@ import Yesod.Core
|
|||||||
|
|
||||||
data YesodOAuthException = CredentialError String Credential
|
data YesodOAuthException = CredentialError String Credential
|
||||||
| SessionError String
|
| SessionError String
|
||||||
deriving (Show, Typeable)
|
deriving Show
|
||||||
|
|
||||||
instance Exception YesodOAuthException
|
instance Exception YesodOAuthException
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod-auth-oauth
|
name: yesod-auth-oauth
|
||||||
version: 1.6.0.1
|
version: 1.6.0.2
|
||||||
license: BSD3
|
license: BSD3
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Hiromi Ishii
|
author: Hiromi Ishii
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
# ChangeLog for yesod-auth
|
# ChangeLog for yesod-auth
|
||||||
|
|
||||||
## Unreleased
|
## 1.6.8.1
|
||||||
|
|
||||||
* Email: Fix typo in `defaultEmailLoginHandler` template [#1605](https://github.com/yesodweb/yesod/pull/1605)
|
* Email: Fix typo in `defaultEmailLoginHandler` template [#1605](https://github.com/yesodweb/yesod/pull/1605)
|
||||||
|
* Remove unnecessary deriving of Typeable
|
||||||
|
|
||||||
## 1.6.8
|
## 1.6.8
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,6 @@
|
|||||||
{-# LANGUAGE MultiParamTypeClasses #-}
|
{-# LANGUAGE MultiParamTypeClasses #-}
|
||||||
{-# LANGUAGE RankNTypes #-}
|
{-# LANGUAGE RankNTypes #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
{-# LANGUAGE DeriveDataTypeable #-}
|
|
||||||
{-# LANGUAGE UndecidableInstances #-}
|
{-# LANGUAGE UndecidableInstances #-}
|
||||||
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
||||||
module Yesod.Auth
|
module Yesod.Auth
|
||||||
@ -515,7 +514,6 @@ maybeAuthPair = runMaybeT $ do
|
|||||||
|
|
||||||
|
|
||||||
newtype CachedMaybeAuth val = CachedMaybeAuth { unCachedMaybeAuth :: Maybe val }
|
newtype CachedMaybeAuth val = CachedMaybeAuth { unCachedMaybeAuth :: Maybe val }
|
||||||
deriving Typeable
|
|
||||||
|
|
||||||
-- | Class which states that the given site is an instance of @YesodAuth@
|
-- | Class which states that the given site is an instance of @YesodAuth@
|
||||||
-- and that its @AuthId@ is a lookup key for the full user information in
|
-- and that its @AuthId@ is a lookup key for the full user information in
|
||||||
@ -607,7 +605,7 @@ instance YesodAuth master => RenderMessage master AuthMessage where
|
|||||||
renderMessage = renderAuthMessage
|
renderMessage = renderAuthMessage
|
||||||
|
|
||||||
data AuthException = InvalidFacebookResponse
|
data AuthException = InvalidFacebookResponse
|
||||||
deriving (Show, Typeable)
|
deriving Show
|
||||||
instance Exception AuthException
|
instance Exception AuthException
|
||||||
|
|
||||||
instance YesodAuth master => YesodSubDispatch Auth master where
|
instance YesodAuth master => YesodSubDispatch Auth master where
|
||||||
|
|||||||
@ -4,7 +4,6 @@
|
|||||||
{-# LANGUAGE MultiParamTypeClasses #-}
|
{-# LANGUAGE MultiParamTypeClasses #-}
|
||||||
{-# LANGUAGE RankNTypes #-}
|
{-# LANGUAGE RankNTypes #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
{-# LANGUAGE DeriveDataTypeable #-}
|
|
||||||
{-# LANGUAGE ViewPatterns #-}
|
{-# LANGUAGE ViewPatterns #-}
|
||||||
module Yesod.Auth.Routes where
|
module Yesod.Auth.Routes where
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod-auth
|
name: yesod-auth
|
||||||
version: 1.6.8
|
version: 1.6.8.1
|
||||||
license: MIT
|
license: MIT
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Michael Snoyman, Patrick Brisbin
|
author: Michael Snoyman, Patrick Brisbin
|
||||||
|
|||||||
@ -1,8 +1,12 @@
|
|||||||
# ChangeLog for yesod-core
|
# ChangeLog for yesod-core
|
||||||
|
|
||||||
|
## 1.6.17.1
|
||||||
|
|
||||||
|
* Remove unnecessary deriving of Typeable
|
||||||
|
|
||||||
## 1.6.17
|
## 1.6.17
|
||||||
|
|
||||||
Adds `contentTypeIsJson` [#1646](https://github.com/yesodweb/yesod/pull/1646)
|
* Adds `contentTypeIsJson` [#1646](https://github.com/yesodweb/yesod/pull/1646)
|
||||||
|
|
||||||
## 1.6.16.1
|
## 1.6.16.1
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,6 @@
|
|||||||
{-# LANGUAGE TupleSections #-}
|
{-# LANGUAGE TupleSections #-}
|
||||||
{-# LANGUAGE TypeFamilies #-}
|
{-# LANGUAGE TypeFamilies #-}
|
||||||
{-# LANGUAGE RankNTypes #-}
|
{-# LANGUAGE RankNTypes #-}
|
||||||
{-# LANGUAGE DeriveDataTypeable #-}
|
|
||||||
{-# LANGUAGE ScopedTypeVariables #-}
|
{-# LANGUAGE ScopedTypeVariables #-}
|
||||||
---------------------------------------------------------
|
---------------------------------------------------------
|
||||||
--
|
--
|
||||||
@ -1037,7 +1036,7 @@ instance (key ~ Text, val ~ Text) => RedirectUrl master (Route master, Map.Map k
|
|||||||
-- > redirect (NewsfeedR :#: storyId)
|
-- > redirect (NewsfeedR :#: storyId)
|
||||||
--
|
--
|
||||||
-- @since 1.2.9.
|
-- @since 1.2.9.
|
||||||
data Fragment a b = a :#: b deriving (Show, Typeable)
|
data Fragment a b = a :#: b deriving Show
|
||||||
|
|
||||||
instance (RedirectUrl master a, PathPiece b) => RedirectUrl master (Fragment a b) where
|
instance (RedirectUrl master a, PathPiece b) => RedirectUrl master (Fragment a b) where
|
||||||
toTextUrl (a :#: b) = (\ua -> T.concat [ua, "#", toPathPiece b]) <$> toTextUrl a
|
toTextUrl (a :#: b) = (\ua -> T.concat [ua, "#", toPathPiece b]) <$> toTextUrl a
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
{-# LANGUAGE CPP #-}
|
{-# LANGUAGE CPP #-}
|
||||||
{-# LANGUAGE DeriveFunctor #-}
|
{-# LANGUAGE DeriveFunctor #-}
|
||||||
{-# LANGUAGE DeriveDataTypeable #-}
|
|
||||||
{-# LANGUAGE DeriveGeneric #-}
|
{-# LANGUAGE DeriveGeneric #-}
|
||||||
{-# LANGUAGE TupleSections #-}
|
{-# LANGUAGE TupleSections #-}
|
||||||
{-# LANGUAGE FlexibleInstances #-}
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
@ -37,7 +36,6 @@ import Data.Text (Text)
|
|||||||
import qualified Data.Text as T
|
import qualified Data.Text as T
|
||||||
import qualified Data.Text.Lazy.Builder as TBuilder
|
import qualified Data.Text.Lazy.Builder as TBuilder
|
||||||
import Data.Time (UTCTime)
|
import Data.Time (UTCTime)
|
||||||
import Data.Typeable (Typeable)
|
|
||||||
import GHC.Generics (Generic)
|
import GHC.Generics (Generic)
|
||||||
import Language.Haskell.TH.Syntax (Loc)
|
import Language.Haskell.TH.Syntax (Loc)
|
||||||
import qualified Network.HTTP.Types as H
|
import qualified Network.HTTP.Types as H
|
||||||
@ -333,7 +331,7 @@ data ErrorResponse =
|
|||||||
| NotAuthenticated
|
| NotAuthenticated
|
||||||
| PermissionDenied !Text
|
| PermissionDenied !Text
|
||||||
| BadMethod !H.Method
|
| BadMethod !H.Method
|
||||||
deriving (Show, Eq, Typeable, Generic)
|
deriving (Show, Eq, Generic)
|
||||||
instance NFData ErrorResponse
|
instance NFData ErrorResponse
|
||||||
|
|
||||||
----- header stuff
|
----- header stuff
|
||||||
@ -411,7 +409,6 @@ data HandlerContents =
|
|||||||
| HCCreated !Text
|
| HCCreated !Text
|
||||||
| HCWai !W.Response
|
| HCWai !W.Response
|
||||||
| HCWaiApp !W.Application
|
| HCWaiApp !W.Application
|
||||||
deriving Typeable
|
|
||||||
|
|
||||||
instance Show HandlerContents where
|
instance Show HandlerContents where
|
||||||
show (HCContent status (TypedContent t _)) = "HCContent " ++ show (status, t)
|
show (HCContent status (TypedContent t _)) = "HCContent " ++ show (status, t)
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{-# LANGUAGE TemplateHaskell #-}
|
{-# LANGUAGE TemplateHaskell #-}
|
||||||
{-# LANGUAGE DeriveDataTypeable #-}
|
|
||||||
{-# LANGUAGE PatternGuards #-}
|
{-# LANGUAGE PatternGuards #-}
|
||||||
{-# OPTIONS_GHC -fno-warn-missing-fields #-} -- QuasiQuoter
|
{-# OPTIONS_GHC -fno-warn-missing-fields #-} -- QuasiQuoter
|
||||||
module Yesod.Routes.Parse
|
module Yesod.Routes.Parse
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
{-# LANGUAGE QuasiQuotes, TypeFamilies, TemplateHaskell, MultiParamTypeClasses #-}
|
{-# LANGUAGE QuasiQuotes, TypeFamilies, TemplateHaskell, MultiParamTypeClasses #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
{-# LANGUAGE FlexibleInstances #-}
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
{-# LANGUAGE DeriveDataTypeable #-}
|
|
||||||
{-# LANGUAGE Rank2Types #-}
|
{-# LANGUAGE Rank2Types #-}
|
||||||
module YesodCoreTest.Cache
|
module YesodCoreTest.Cache
|
||||||
( cacheTest
|
( cacheTest
|
||||||
@ -22,10 +21,8 @@ import qualified Data.ByteString.Lazy.Char8 as L8
|
|||||||
data C = C
|
data C = C
|
||||||
|
|
||||||
newtype V1 = V1 Int
|
newtype V1 = V1 Int
|
||||||
deriving Typeable
|
|
||||||
|
|
||||||
newtype V2 = V2 Int
|
newtype V2 = V2 Int
|
||||||
deriving Typeable
|
|
||||||
|
|
||||||
mkYesod "C" [parseRoutes|
|
mkYesod "C" [parseRoutes|
|
||||||
/ RootR GET
|
/ RootR GET
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod-core
|
name: yesod-core
|
||||||
version: 1.6.17
|
version: 1.6.17.1
|
||||||
license: MIT
|
license: MIT
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Michael Snoyman <michael@snoyman.com>
|
author: Michael Snoyman <michael@snoyman.com>
|
||||||
|
|||||||
@ -1,3 +1,7 @@
|
|||||||
|
## 1.6.0.2
|
||||||
|
|
||||||
|
* Remove unnecessary deriving of Typeable
|
||||||
|
|
||||||
## 1.6.0.1
|
## 1.6.0.1
|
||||||
|
|
||||||
* Make test suite build with GHC 8.6 [#1561](https://github.com/yesodweb/yesod/pull/1561)
|
* Make test suite build with GHC 8.6 [#1561](https://github.com/yesodweb/yesod/pull/1561)
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
{-# LANGUAGE DeriveDataTypeable, RecordWildCards #-}
|
{-# LANGUAGE RecordWildCards #-}
|
||||||
import Network.Wai.Application.Static
|
import Network.Wai.Application.Static
|
||||||
( StaticSettings (..), staticApp, defaultMimeType, defaultListing
|
( StaticSettings (..), staticApp, defaultMimeType, defaultListing
|
||||||
, defaultMimeTypes, mimeTypeByExt
|
, defaultMimeTypes, mimeTypeByExt
|
||||||
@ -25,7 +25,7 @@ data Args = Args
|
|||||||
, verbose :: Bool
|
, verbose :: Bool
|
||||||
, mime :: [(String, String)]
|
, mime :: [(String, String)]
|
||||||
}
|
}
|
||||||
deriving (Show, Data, Typeable)
|
deriving (Show, Data)
|
||||||
|
|
||||||
defaultArgs = Args "." ["index.html", "index.htm"] 3000 False False False []
|
defaultArgs = Args "." ["index.html", "index.htm"] 3000 False False False []
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod-static
|
name: yesod-static
|
||||||
version: 1.6.0.1
|
version: 1.6.0.2
|
||||||
license: MIT
|
license: MIT
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Michael Snoyman <michael@snoyman.com>
|
author: Michael Snoyman <michael@snoyman.com>
|
||||||
|
|||||||
@ -1,3 +1,7 @@
|
|||||||
|
## 1.6.0.1
|
||||||
|
|
||||||
|
* Remove unnecessary deriving of Typeable
|
||||||
|
|
||||||
## 1.6.0
|
## 1.6.0
|
||||||
|
|
||||||
* Upgrade to yesod-core 1.6
|
* Upgrade to yesod-core 1.6
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
{-# LANGUAGE DeriveDataTypeable #-}
|
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
{-# LANGUAGE PatternGuards #-}
|
{-# LANGUAGE PatternGuards #-}
|
||||||
module Yesod.Default.Config
|
module Yesod.Default.Config
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
{-# LANGUAGE CPP #-}
|
{-# LANGUAGE CPP #-}
|
||||||
{-# LANGUAGE DeriveDataTypeable #-}
|
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
{-# LANGUAGE TemplateHaskell #-}
|
{-# LANGUAGE TemplateHaskell #-}
|
||||||
module Yesod.Default.Main
|
module Yesod.Default.Main
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod
|
name: yesod
|
||||||
version: 1.6.0
|
version: 1.6.0.1
|
||||||
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