mirror of
https://github.com/aelve/guide.git
synced 2024-11-22 03:12:58 +03:00
Enable all unobjectionable extensions (#384)
* Enable OverloadedStrings by default * Remove pragmas for default extensions * Enable some other extensions * Enable TemplateHaskell
This commit is contained in:
parent
ce62066598
commit
0c50de646b
@ -1,6 +1,7 @@
|
|||||||
# Help Hlint parse our code
|
# Help Hlint parse our code
|
||||||
- arguments:
|
- arguments:
|
||||||
- -XTypeApplications
|
- -XTypeApplications
|
||||||
|
- -XQuasiQuotes
|
||||||
|
|
||||||
# Force qualified imports to be imported consistently.
|
# Force qualified imports to be imported consistently.
|
||||||
- modules:
|
- modules:
|
||||||
|
@ -36,8 +36,24 @@ default-extensions:
|
|||||||
- ConstraintKinds
|
- ConstraintKinds
|
||||||
- InstanceSigs
|
- InstanceSigs
|
||||||
- DerivingStrategies
|
- DerivingStrategies
|
||||||
- TemplateHaskellQuotes
|
|
||||||
- ScopedTypeVariables
|
- ScopedTypeVariables
|
||||||
|
- OverloadedStrings
|
||||||
|
- TypeOperators
|
||||||
|
- KindSignatures
|
||||||
|
- DataKinds
|
||||||
|
- StandaloneDeriving
|
||||||
|
- TypeFamilies
|
||||||
|
- GADTs
|
||||||
|
- DefaultSignatures
|
||||||
|
- RoleAnnotations
|
||||||
|
- QuasiQuotes
|
||||||
|
- DeriveLift
|
||||||
|
- PackageImports
|
||||||
|
- OverloadedLabels
|
||||||
|
- DeriveDataTypeable
|
||||||
|
- PatternSynonyms
|
||||||
|
- NamedFieldPuns
|
||||||
|
- TemplateHaskell
|
||||||
|
|
||||||
library:
|
library:
|
||||||
source-dirs: src
|
source-dirs: src
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
|
|
||||||
-- | Rendered documentation for the API.
|
-- | Rendered documentation for the API.
|
||||||
module Guide.Api.Docs
|
module Guide.Api.Docs
|
||||||
(
|
(
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
{-# LANGUAGE DataKinds #-}
|
|
||||||
{-# LANGUAGE FlexibleInstances #-}
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
{-# LANGUAGE ScopedTypeVariables #-}
|
|
||||||
{-# LANGUAGE TypeFamilies #-}
|
|
||||||
{-# LANGUAGE TypeOperators #-}
|
|
||||||
|
|
||||||
|
|
||||||
module Guide.Api.Error
|
module Guide.Api.Error
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
|
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE ScopedTypeVariables #-}
|
|
||||||
|
|
||||||
-- | 'Guider' monad with 'Config' to replace servant's 'Handler'.
|
-- | 'Guider' monad with 'Config' to replace servant's 'Handler'.
|
||||||
module Guide.Api.Guider
|
module Guide.Api.Guider
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
{-# LANGUAGE AllowAmbiguousTypes #-}
|
{-# LANGUAGE AllowAmbiguousTypes #-}
|
||||||
{-# LANGUAGE TemplateHaskell #-}
|
|
||||||
{-# LANGUAGE DataKinds #-}
|
|
||||||
{-# LANGUAGE NamedFieldPuns #-}
|
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE TypeFamilies #-}
|
|
||||||
|
|
||||||
{-# OPTIONS_GHC -Wno-missing-export-lists #-}
|
{-# OPTIONS_GHC -Wno-missing-export-lists #-}
|
||||||
|
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
{-# LANGUAGE DataKinds #-}
|
|
||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE TypeApplications #-}
|
|
||||||
{-# LANGUAGE TypeOperators #-}
|
|
||||||
{-# LANGUAGE ScopedTypeVariables #-}
|
|
||||||
|
|
||||||
module Guide.Api.Server
|
module Guide.Api.Server
|
||||||
(
|
(
|
||||||
|
@ -1,12 +1,4 @@
|
|||||||
{-# LANGUAGE DataKinds #-}
|
|
||||||
{-# LANGUAGE TemplateHaskell #-}
|
|
||||||
{-# LANGUAGE DeriveGeneric #-}
|
|
||||||
{-# LANGUAGE FlexibleInstances #-}
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
{-# LANGUAGE MultiParamTypeClasses #-}
|
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE TypeFamilies #-}
|
|
||||||
{-# LANGUAGE TypeOperators #-}
|
|
||||||
|
|
||||||
|
|
||||||
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
||||||
|
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
{-# LANGUAGE DataKinds #-}
|
|
||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
{-# LANGUAGE FlexibleInstances #-}
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE ScopedTypeVariables #-}
|
|
||||||
{-# LANGUAGE TypeApplications #-}
|
|
||||||
{-# LANGUAGE TypeFamilies #-}
|
|
||||||
{-# LANGUAGE TypeOperators #-}
|
|
||||||
{-# LANGUAGE UndecidableInstances #-}
|
{-# LANGUAGE UndecidableInstances #-}
|
||||||
|
|
||||||
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
{-# LANGUAGE ConstraintKinds #-}
|
|
||||||
{-# LANGUAGE TypeFamilies #-}
|
|
||||||
|
|
||||||
{-# OPTIONS_GHC -Wno-missing-export-lists #-}
|
{-# OPTIONS_GHC -Wno-missing-export-lists #-}
|
||||||
|
|
||||||
-- | App module defines types used by the Spock framework.
|
-- | App module defines types used by the Spock framework.
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE TypeApplications #-}
|
|
||||||
|
|
||||||
|
|
||||||
-- | Methods for working with archive.org. Right now the admin interface
|
-- | Methods for working with archive.org. Right now the admin interface
|
||||||
-- provides a list of broken links together with links to their archived
|
-- provides a list of broken links together with links to their archived
|
||||||
-- copies; in the future we might add automatic archival and automatic link
|
-- copies; in the future we might add automatic archival and automatic link
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE TemplateHaskell #-}
|
|
||||||
|
|
||||||
-- | Guide's command line interface.
|
-- | Guide's command line interface.
|
||||||
--
|
--
|
||||||
-- Run @guide --help@ to see available commands.
|
-- Run @guide --help@ to see available commands.
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE TemplateHaskell #-}
|
|
||||||
|
|
||||||
-- | Server config. For instance, the admin password is stored here, as well
|
-- | Server config. For instance, the admin password is stored here, as well
|
||||||
-- as the base url (for correct link generation in feeds).
|
-- as the base url (for correct link generation in feeds).
|
||||||
module Guide.Config
|
module Guide.Config
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
|
|
||||||
|
|
||||||
-- | Connect to the Guide database.
|
-- | Connect to the Guide database.
|
||||||
module Guide.Database.Connection
|
module Guide.Database.Connection
|
||||||
( connect
|
( connect
|
||||||
|
@ -1,8 +1,3 @@
|
|||||||
{-# LANGUAGE DataKinds #-}
|
|
||||||
{-# LANGUAGE OverloadedLabels #-}
|
|
||||||
{-# LANGUAGE QuasiQuotes #-}
|
|
||||||
{-# LANGUAGE TypeOperators #-}
|
|
||||||
|
|
||||||
-- | Delete queries.
|
-- | Delete queries.
|
||||||
module Guide.Database.Queries.Delete
|
module Guide.Database.Queries.Delete
|
||||||
(
|
(
|
||||||
|
@ -1,9 +1,3 @@
|
|||||||
{-# LANGUAGE DataKinds #-}
|
|
||||||
{-# LANGUAGE OverloadedLabels #-}
|
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE QuasiQuotes #-}
|
|
||||||
{-# LANGUAGE TypeOperators #-}
|
|
||||||
|
|
||||||
-- | Insert queries.
|
-- | Insert queries.
|
||||||
module Guide.Database.Queries.Insert
|
module Guide.Database.Queries.Insert
|
||||||
(
|
(
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
{-# LANGUAGE ApplicativeDo #-}
|
{-# LANGUAGE ApplicativeDo #-}
|
||||||
{-# LANGUAGE DataKinds #-}
|
|
||||||
{-# LANGUAGE OverloadedLabels #-}
|
|
||||||
{-# LANGUAGE QuasiQuotes #-}
|
|
||||||
{-# LANGUAGE TypeOperators #-}
|
|
||||||
|
|
||||||
|
|
||||||
-- | Read-only database queries.
|
-- | Read-only database queries.
|
||||||
|
@ -1,11 +1,3 @@
|
|||||||
{-# LANGUAGE DataKinds #-}
|
|
||||||
{-# LANGUAGE TemplateHaskell #-}
|
|
||||||
{-# LANGUAGE OverloadedLabels #-}
|
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE QuasiQuotes #-}
|
|
||||||
{-# LANGUAGE TypeOperators #-}
|
|
||||||
|
|
||||||
-- | Update queries.
|
|
||||||
module Guide.Database.Queries.Update
|
module Guide.Database.Queries.Update
|
||||||
(
|
(
|
||||||
-- * Category
|
-- * Category
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE QuasiQuotes #-}
|
|
||||||
|
|
||||||
|
|
||||||
-- | Schemas to create table for guide database
|
-- | Schemas to create table for guide database
|
||||||
module Guide.Database.Schema
|
module Guide.Database.Schema
|
||||||
(
|
(
|
||||||
|
@ -1,10 +1,3 @@
|
|||||||
{-# LANGUAGE DataKinds #-}
|
|
||||||
{-# LANGUAGE TemplateHaskell #-}
|
|
||||||
{-# LANGUAGE OverloadedLabels #-}
|
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE QuasiQuotes #-}
|
|
||||||
{-# LANGUAGE TypeOperators #-}
|
|
||||||
|
|
||||||
-- | Types for postgres database
|
-- | Types for postgres database
|
||||||
module Guide.Database.Types
|
module Guide.Database.Types
|
||||||
(
|
(
|
||||||
|
@ -1,12 +1,7 @@
|
|||||||
{-# LANGUAGE MonoLocalBinds #-}
|
{-# LANGUAGE MonoLocalBinds #-}
|
||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
{-# LANGUAGE DefaultSignatures #-}
|
|
||||||
{-# LANGUAGE UndecidableInstances #-}
|
{-# LANGUAGE UndecidableInstances #-}
|
||||||
{-# LANGUAGE FlexibleInstances #-}
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
{-# LANGUAGE TypeOperators #-}
|
|
||||||
{-# LANGUAGE DataKinds #-}
|
|
||||||
{-# LANGUAGE OverloadedLabels #-}
|
|
||||||
{-# LANGUAGE TemplateHaskell #-}
|
|
||||||
|
|
||||||
-- | Utilities for working with Postgres.
|
-- | Utilities for working with Postgres.
|
||||||
module Guide.Database.Utils
|
module Guide.Database.Utils
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE TemplateHaskell #-}
|
|
||||||
|
|
||||||
|
|
||||||
-- | Diff- and merge-related things.
|
-- | Diff- and merge-related things.
|
||||||
module Guide.Diff
|
module Guide.Diff
|
||||||
(
|
(
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE PatternSynonyms #-}
|
|
||||||
|
|
||||||
|
|
||||||
-- | Prepare text for diffing or merging by breaking it into tokens (like
|
-- | Prepare text for diffing or merging by breaking it into tokens (like
|
||||||
-- links or Markdown elements).
|
-- links or Markdown elements).
|
||||||
module Guide.Diff.Tokenize
|
module Guide.Diff.Tokenize
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE ScopedTypeVariables #-}
|
|
||||||
{-# LANGUAGE TypeFamilies #-}
|
|
||||||
|
|
||||||
-- | All rest API handlers.
|
-- | All rest API handlers.
|
||||||
module Guide.Handlers
|
module Guide.Handlers
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
{-# LANGUAGE BangPatterns #-}
|
{-# LANGUAGE BangPatterns #-}
|
||||||
{-# LANGUAGE FlexibleInstances #-}
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
|
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE QuasiQuotes #-}
|
|
||||||
|
|
||||||
{-# OPTIONS_GHC -Wno-missing-export-lists #-}
|
{-# OPTIONS_GHC -Wno-missing-export-lists #-}
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
{-# LANGUAGE ScopedTypeVariables #-}
|
|
||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
|
|
||||||
module Guide.Logger.Functions
|
module Guide.Logger.Functions
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
{-# LANGUAGE ScopedTypeVariables #-}
|
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
|
|
||||||
module Guide.Logger.Run
|
module Guide.Logger.Run
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
{-# LANGUAGE StandaloneDeriving #-}
|
|
||||||
|
|
||||||
{-# OPTIONS_GHC -fno-warn-orphans #-} -- for "instance Read Df1.Level"
|
{-# OPTIONS_GHC -fno-warn-orphans #-} -- for "instance Read Df1.Level"
|
||||||
|
|
||||||
-- | The logger monad and associated types.
|
-- | The logger monad and associated types.
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
{-# LANGUAGE DataKinds #-}
|
|
||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE ScopedTypeVariables #-}
|
|
||||||
{-# LANGUAGE TypeFamilies #-}
|
|
||||||
{-# LANGUAGE TypeOperators #-}
|
|
||||||
|
|
||||||
-- | Description : The main module that starts the server.
|
-- | Description : The main module that starts the server.
|
||||||
module Guide.Main
|
module Guide.Main
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
{-# LANGUAGE DeriveDataTypeable #-}
|
|
||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
{-# LANGUAGE FlexibleInstances #-}
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE StandaloneDeriving #-}
|
|
||||||
{-# LANGUAGE TemplateHaskell #-}
|
|
||||||
|
|
||||||
|
|
||||||
-- | Everything concerning rendering and processing Markdown.
|
-- | Everything concerning rendering and processing Markdown.
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
|
|
||||||
|
|
||||||
-- | Functions for interacting with Matomo (<https://matomo.org/>, our web
|
-- | Functions for interacting with Matomo (<https://matomo.org/>, our web
|
||||||
-- analytics).
|
-- analytics).
|
||||||
--
|
--
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
{-# LANGUAGE DataKinds #-}
|
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
|
|
||||||
|
|
||||||
module Guide.Routes
|
module Guide.Routes
|
||||||
(
|
(
|
||||||
addRoute,
|
addRoute,
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
{-# LANGUAGE DataKinds #-}
|
|
||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE TypeFamilies #-}
|
|
||||||
|
|
||||||
|
|
||||||
-- | Spock state, functions for manipulating it, handler helpers, and so on.
|
-- | Spock state, functions for manipulating it, handler helpers, and so on.
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
{-# LANGUAGE DataKinds #-}
|
|
||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
{-# LANGUAGE GADTs #-}
|
|
||||||
{-# LANGUAGE ScopedTypeVariables #-}
|
|
||||||
{-# LANGUAGE TypeFamilies #-}
|
|
||||||
{-# LANGUAGE TypeOperators #-}
|
|
||||||
|
|
||||||
module Guide.Session
|
module Guide.Session
|
||||||
(
|
(
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
{-# LANGUAGE FlexibleInstances #-}
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE QuasiQuotes #-}
|
|
||||||
{-# LANGUAGE TypeFamilies #-}
|
|
||||||
{-# LANGUAGE StandaloneDeriving #-}
|
|
||||||
{-# LANGUAGE TemplateHaskell #-}
|
|
||||||
|
|
||||||
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
||||||
|
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
{-# LANGUAGE TypeFamilies #-}
|
|
||||||
{-# LANGUAGE TemplateHaskell #-}
|
|
||||||
|
|
||||||
|
|
||||||
-- | Types for analytics.
|
-- | Types for analytics.
|
||||||
--
|
--
|
||||||
-- * We collect information about 'Action's that users perform. An action
|
-- * We collect information about 'Action's that users perform. An action
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
{-# LANGUAGE DeriveDataTypeable #-}
|
|
||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
{-# LANGUAGE FlexibleInstances #-}
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE QuasiQuotes #-}
|
|
||||||
{-# LANGUAGE ScopedTypeVariables #-}
|
|
||||||
{-# LANGUAGE TypeFamilies #-}
|
|
||||||
{-# LANGUAGE TemplateHaskell #-}
|
|
||||||
|
|
||||||
|
|
||||||
-- | Core types for content.
|
-- | Core types for content.
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
{-# LANGUAGE TypeFamilies #-}
|
|
||||||
{-# LANGUAGE TemplateHaskell #-}
|
|
||||||
|
|
||||||
|
|
||||||
-- | Types for edits.
|
-- | Types for edits.
|
||||||
--
|
--
|
||||||
-- Every content edit is associated with an 'Edit', which is stored in the
|
-- Every content edit is associated with an 'Edit', which is stored in the
|
||||||
@ -254,7 +250,7 @@ instance Migrate Edit_v8 where
|
|||||||
EditAddCategory_v8
|
EditAddCategory_v8
|
||||||
{ editCategoryUid_v8 = editCategoryUid_v7 x
|
{ editCategoryUid_v8 = editCategoryUid_v7 x
|
||||||
, editCategoryTitle_v8 = editCategoryTitle_v7 x
|
, editCategoryTitle_v8 = editCategoryTitle_v7 x
|
||||||
, editCategoryGroup_v8 = toText "Miscellaneous"
|
, editCategoryGroup_v8 = "Miscellaneous"
|
||||||
} |],
|
} |],
|
||||||
CopyM "EditAddItem",
|
CopyM "EditAddItem",
|
||||||
CopyM "EditAddPro",
|
CopyM "EditAddPro",
|
||||||
|
@ -1,9 +1,3 @@
|
|||||||
{-# LANGUAGE DeriveDataTypeable #-}
|
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE TemplateHaskell #-}
|
|
||||||
{-# LANGUAGE TypeFamilies #-}
|
|
||||||
|
|
||||||
|
|
||||||
-- | Deprecated as of 2019-07-25.
|
-- | Deprecated as of 2019-07-25.
|
||||||
--
|
--
|
||||||
-- TODO: remove after we have migrated from acid-state.
|
-- TODO: remove after we have migrated from acid-state.
|
||||||
|
@ -1,8 +1,3 @@
|
|||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE TemplateHaskell #-}
|
|
||||||
{-# LANGUAGE TypeFamilies #-}
|
|
||||||
|
|
||||||
|
|
||||||
module Guide.Types.Session
|
module Guide.Types.Session
|
||||||
(
|
(
|
||||||
GuideData (..),
|
GuideData (..),
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
{-# LANGUAGE StandaloneDeriving #-}
|
|
||||||
{-# LANGUAGE TypeFamilies #-}
|
|
||||||
{-# LANGUAGE TemplateHaskell #-}
|
|
||||||
|
|
||||||
-- | A type for users. Currently unused.
|
-- | A type for users. Currently unused.
|
||||||
module Guide.Types.User
|
module Guide.Types.User
|
||||||
(
|
(
|
||||||
|
@ -1,12 +1,6 @@
|
|||||||
{-# LANGUAGE DeriveDataTypeable #-}
|
|
||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
{-# LANGUAGE FlexibleInstances #-}
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
|
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE QuasiQuotes #-}
|
|
||||||
{-# LANGUAGE ScopedTypeVariables #-}
|
|
||||||
{-# LANGUAGE TypeFamilies #-}
|
|
||||||
{-# LANGUAGE TemplateHaskell #-}
|
|
||||||
|
|
||||||
|
|
||||||
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE QuasiQuotes #-}
|
|
||||||
{-# LANGUAGE ScopedTypeVariables #-}
|
|
||||||
{-# LANGUAGE TypeApplications #-}
|
|
||||||
|
|
||||||
|
|
||||||
-- | All views and all rendering logic.
|
-- | All views and all rendering logic.
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
{-# LANGUAGE FlexibleInstances #-}
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
|
|
||||||
{-# OPTIONS_GHC -Wno-missing-export-lists #-}
|
{-# OPTIONS_GHC -Wno-missing-export-lists #-}
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
{-# LANGUAGE FlexibleInstances #-}
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
|
|
||||||
{-# OPTIONS_GHC -Wno-name-shadowing #-}
|
{-# OPTIONS_GHC -Wno-name-shadowing #-}
|
||||||
{-# OPTIONS_GHC -Wno-missing-export-lists #-}
|
{-# OPTIONS_GHC -Wno-missing-export-lists #-}
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
|
|
||||||
|
|
||||||
-- | Category rendering.
|
-- | Category rendering.
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
|
|
||||||
|
|
||||||
-- | Item rendering.
|
-- | Item rendering.
|
||||||
--
|
--
|
||||||
-- The main functions this module provides are 'renderItem' and
|
-- The main functions this module provides are 'renderItem' and
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
{-# LANGUAGE FlexibleInstances #-}
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE QuasiQuotes #-}
|
|
||||||
{-# LANGUAGE TemplateHaskell #-}
|
|
||||||
|
|
||||||
|
|
||||||
-- | Page rendering.
|
-- | Page rendering.
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
|
|
||||||
-- | Various HTML utils, Mustache utils, etc.
|
-- | Various HTML utils, Mustache utils, etc.
|
||||||
module Guide.Views.Utils
|
module Guide.Views.Utils
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
|
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
|
||||||
|
|
||||||
-- | Lucid rendering for inputs and form fields.
|
-- | Lucid rendering for inputs and form fields.
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
{-# LANGUAGE NoImplicitPrelude #-}
|
|
||||||
|
|
||||||
|
|
||||||
-- | Imports used in the whole codebase. (All modules import this one
|
-- | Imports used in the whole codebase. (All modules import this one
|
||||||
-- instead of the "Prelude".)
|
-- instead of the "Prelude".)
|
||||||
module Imports
|
module Imports
|
||||||
@ -48,7 +45,7 @@ import GHC.Stack as X (HasCallStack)
|
|||||||
|
|
||||||
-- Don't let HLint complain about Data.ByteString being imported as
|
-- Don't let HLint complain about Data.ByteString being imported as
|
||||||
-- something other than "BS" (and so on for other modules)
|
-- something other than "BS" (and so on for other modules)
|
||||||
{-# ANN module "HLint: ignore Avoid restricted qualification" #-}
|
{-# ANN module ("HLint: ignore Avoid restricted qualification" :: String) #-}
|
||||||
|
|
||||||
-- | Short type for lazy ByteString
|
-- | Short type for lazy ByteString
|
||||||
type LByteString = BSL.ByteString
|
type LByteString = BSL.ByteString
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
{-# LANGUAGE ScopedTypeVariables #-}
|
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE NoImplicitPrelude #-}
|
|
||||||
|
|
||||||
-- | Integration tests for new API methods.
|
-- | Integration tests for new API methods.
|
||||||
module ApiSpec (tests) where
|
module ApiSpec (tests) where
|
||||||
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
{-# LANGUAGE ScopedTypeVariables #-}
|
|
||||||
{-# LANGUAGE QuasiQuotes #-}
|
|
||||||
|
|
||||||
-- | Tests for logging of errors.
|
-- | Tests for logging of errors.
|
||||||
module LogSpec (tests) where
|
module LogSpec (tests) where
|
||||||
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
{-# LANGUAGE NoImplicitPrelude #-}
|
|
||||||
|
|
||||||
|
|
||||||
module Main (main) where
|
module Main (main) where
|
||||||
|
|
||||||
-- Shared imports
|
-- Shared imports
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
{-# LANGUAGE NoImplicitPrelude #-}
|
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
|
|
||||||
|
|
||||||
module MarkdownSpec (tests) where
|
module MarkdownSpec (tests) where
|
||||||
|
|
||||||
-- Shared imports
|
-- Shared imports
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
{-# LANGUAGE NoImplicitPrelude #-}
|
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
|
|
||||||
|
|
||||||
module MergeSpec (tests) where
|
module MergeSpec (tests) where
|
||||||
|
|
||||||
-- Shared imports
|
-- Shared imports
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
{-# LANGUAGE FlexibleInstances #-}
|
{-# LANGUAGE FlexibleInstances #-}
|
||||||
{-# LANGUAGE GADTs #-}
|
|
||||||
{-# LANGUAGE IncoherentInstances #-}
|
{-# LANGUAGE IncoherentInstances #-}
|
||||||
{-# LANGUAGE NoImplicitPrelude #-}
|
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE StandaloneDeriving #-}
|
|
||||||
|
|
||||||
{-# OPTIONS_GHC -fno-warn-orphans #-} -- for "instance MonadFail WD"
|
{-# OPTIONS_GHC -fno-warn-orphans #-} -- for "instance MonadFail WD"
|
||||||
|
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
{-# LANGUAGE IncoherentInstances #-}
|
{-# LANGUAGE IncoherentInstances #-}
|
||||||
{-# LANGUAGE MonoLocalBinds #-}
|
{-# LANGUAGE MonoLocalBinds #-}
|
||||||
{-# LANGUAGE NoImplicitPrelude #-}
|
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
|
||||||
{-# LANGUAGE ScopedTypeVariables #-}
|
|
||||||
|
|
||||||
|
|
||||||
module WebSpec (tests) where
|
module WebSpec (tests) where
|
||||||
|
Loading…
Reference in New Issue
Block a user