Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype LocalFileError = LocalFileError Text
- data LocalFile m a where
- loadFileMustache :: forall r. MemberWithError LocalFile r => FilePath -> SqlTemplateVariables -> Sem r (Either LocalFileError Text)
- loadSqlFile :: Members [SqlParse, LocalFile, FatalError] r => FilePath -> SqlTemplateVariables -> Sem r Query
- data LocalFileCacheKey
Documentation
newtype LocalFileError #
Instances
Eq LocalFileError # | |
Defined in Napkin.Run.Effects.Languages.LocalFile (==) :: LocalFileError -> LocalFileError -> Bool # (/=) :: LocalFileError -> LocalFileError -> Bool # | |
Show LocalFileError # | |
Defined in Napkin.Run.Effects.Languages.LocalFile showsPrec :: Int -> LocalFileError -> ShowS # show :: LocalFileError -> String # showList :: [LocalFileError] -> ShowS # |
Effects that deal with local files
Instances
CachableEffect (LocalFile :: k -> Type -> Type) LocalFileCacheKey # | |
Defined in Napkin.Run.Effects.Languages.LocalFile | |
Eq (LocalFile m a) # | |
Ord (LocalFile m a) # | |
Defined in Napkin.Run.Effects.Languages.LocalFile compare :: LocalFile m a -> LocalFile m a -> Ordering # (<) :: LocalFile m a -> LocalFile m a -> Bool # (<=) :: LocalFile m a -> LocalFile m a -> Bool # (>) :: LocalFile m a -> LocalFile m a -> Bool # (>=) :: LocalFile m a -> LocalFile m a -> Bool # |
loadFileMustache :: forall r. MemberWithError LocalFile r => FilePath -> SqlTemplateVariables -> Sem r (Either LocalFileError Text) #
loadSqlFile :: Members [SqlParse, LocalFile, FatalError] r => FilePath -> SqlTemplateVariables -> Sem r Query #
data LocalFileCacheKey #
Instances
CachableEffect (LocalFile :: k -> Type -> Type) LocalFileCacheKey # | |
Defined in Napkin.Run.Effects.Languages.LocalFile |