krank-0.3.0: Krank checks issue tracker link status in your source code
Safe HaskellSafe-Inferred
LanguageHaskell2010

Krank.Types

Synopsis

Documentation

newtype GithubKey Source #

Constructors

GithubKey Text 

Instances

Instances details
Show GithubKey Source # 
Instance details

Defined in Krank.Types

newtype GitlabHost Source #

Constructors

GitlabHost Text 

Instances

Instances details
Show GitlabHost Source # 
Instance details

Defined in Krank.Types

Eq GitlabHost Source # 
Instance details

Defined in Krank.Types

Ord GitlabHost Source # 
Instance details

Defined in Krank.Types

newtype GitlabKey Source #

Constructors

GitlabKey Text 

Instances

Instances details
Show GitlabKey Source # 
Instance details

Defined in Krank.Types

data Violation Source #

Constructors

Violation 

Fields

Instances

Instances details
Show Violation Source # 
Instance details

Defined in Krank.Types

data ViolationLevel Source #

Constructors

Info 
Warning 
Error 

Instances

Instances details
Show ViolationLevel Source # 
Instance details

Defined in Krank.Types

data KrankConfig Source #

Constructors

KrankConfig 

Fields

Instances

Instances details
Show KrankConfig Source # 
Instance details

Defined in Krank.Types

data SourcePos Source #

Constructors

SourcePos 

Instances

Instances details
Show SourcePos Source # 
Instance details

Defined in Krank.Types

Eq SourcePos Source # 
Instance details

Defined in Krank.Types

Ord SourcePos Source # 
Instance details

Defined in Krank.Types

data Localized t Source #

Represents a localized chunk of information in a file

Constructors

Localized 

Instances

Instances details
Show t => Show (Localized t) Source # 
Instance details

Defined in Krank.Types

Eq t => Eq (Localized t) Source # 
Instance details

Defined in Krank.Types

Methods

(==) :: Localized t -> Localized t -> Bool #

(/=) :: Localized t -> Localized t -> Bool #

class (Monad m, MonadCatch m) => MonadKrank m where Source #

This monad represents all the effect that Krank needs

Methods

krankRunRESTRequest :: FromJSON t => Url 'Https -> Option 'Https -> m t Source #

Run a REST requet

krankAsks :: (KrankConfig -> b) -> m b Source #

Read the configuration

krankMapConcurrently :: (a -> m b) -> [a] -> m [b] Source #

Apply a function on many item in a concurrent way

krankForConcurrently :: [a] -> (a -> m b) -> m [b] Source #

krankReadFile :: FilePath -> m ByteString Source #

Read a file from filesystem

krankPutStrLnStderr :: Text -> m () Source #

Log an error (with trailing n)

krankPutStr :: Text -> m () Source #

Log a message (without trailing n)

Instances

Instances details
MonadKrank Krank Source #

The real monad implementation for Krank

Instance details

Defined in Krank