Skip to content
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

Export Control.Monad.Fail.fail from IHP.Prelude #1059

Merged
merged 1 commit into from
Aug 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion IHP/AuthSupport/Authorization.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Copyright: (c) digitally induced GmbH, 2020
module IHP.AuthSupport.Authorization where

import IHP.Prelude
import Control.Monad.Fail (fail)

class CanView user model where
canView :: (?modelContext :: ModelContext) => model -> user -> IO Bool
Expand Down
1 change: 0 additions & 1 deletion IHP/IDE/CodeGen/ControllerGenerator.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import qualified Data.Char as Char
import qualified IHP.IDE.SchemaDesigner.Parser as SchemaDesigner
import IHP.IDE.SchemaDesigner.Types
import qualified System.Posix.Env.ByteString as Posix
import Control.Monad.Fail
import IHP.IDE.CodeGen.Types
import qualified IHP.IDE.CodeGen.ViewGenerator as ViewGenerator

Expand Down
1 change: 0 additions & 1 deletion IHP/LoginSupport/Helper/Controller.hs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import qualified IHP.ModelSupport as ModelSupport
import IHP.ControllerSupport
import IHP.FrameworkConfig
import System.IO.Unsafe (unsafePerformIO)
import Control.Monad.Fail
import IHP.AuthSupport.Authorization
import IHP.AuthSupport.Authentication
import IHP.Controller.Context
Expand Down
2 changes: 2 additions & 0 deletions IHP/Prelude.hs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ module IHP.Prelude
, module Data.Time.Format
, null
, module Control.Exception
, module Control.Monad.Fail
)
where

Expand Down Expand Up @@ -69,6 +70,7 @@ import Database.PostgreSQL.Simple (FromRow)
import Data.IORef
import Data.Time.Format
import Control.Exception (throw, throwIO, catch)
import Control.Monad.Fail (fail)

-- Alias for haskell newcomers :)
a ++ b = a <> b
Expand Down
4 changes: 1 addition & 3 deletions exe/IHP/CLI/DeleteController.hs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
module Main where

import ClassyPrelude
import Data.String.Conversions (cs)
import IHP.Prelude
import qualified System.Directory as Directory
import qualified System.Posix.Env.ByteString as Posix
import Control.Monad.Fail
import IHP.IDE.CodeGen.ControllerGenerator
import IHP.IDE.CodeGen.Controller (undoPlan)
import qualified Data.Text as Text
Expand Down
4 changes: 1 addition & 3 deletions exe/IHP/CLI/NewApplication.hs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
module Main where

import ClassyPrelude
import Data.String.Conversions (cs)
import IHP.Prelude
import qualified System.Directory as Directory
import qualified System.Posix.Env.ByteString as Posix
import Control.Monad.Fail
import IHP.IDE.CodeGen.ApplicationGenerator
import IHP.IDE.CodeGen.Controller (executePlan)

Expand Down
4 changes: 1 addition & 3 deletions exe/IHP/CLI/NewController.hs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
module Main where

import ClassyPrelude
import Data.String.Conversions (cs)
import IHP.Prelude
import qualified System.Directory as Directory
import qualified System.Posix.Env.ByteString as Posix
import Control.Monad.Fail
import IHP.IDE.CodeGen.ControllerGenerator
import IHP.IDE.CodeGen.Controller (executePlan)
import qualified Data.Text as Text
Expand Down
1 change: 0 additions & 1 deletion exe/IHP/CLI/NewMigration.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import IHP.Prelude
import IHP.SchemaMigration
import qualified System.Posix.Env.ByteString as Posix
import qualified System.Directory as Directory
import Control.Monad.Fail
import IHP.IDE.ToolServer.Helper.Controller (openEditor)

main :: IO ()
Expand Down
1 change: 0 additions & 1 deletion exe/IHP/CLI/NewScript.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module Main where

import IHP.Prelude
import IHP.HaskellSupport
import qualified Data.Text as Text
import qualified Data.Text.IO as Text
import IHP.ViewSupport
Expand Down