krank-0.2.0: Krank checks your code source comments for important markers

Safe HaskellNone
LanguageHaskell2010

Krank.Types

Synopsis

Documentation

newtype GithubKey Source #

Constructors

GithubKey Text 
Instances
Show GithubKey Source # 
Instance details

Defined in Krank.Types

newtype GitlabKey Source #

Constructors

GitlabKey Text 
Instances
Show GitlabKey Source # 
Instance details

Defined in Krank.Types

data Violation Source #

Constructors

Violation 

Fields

Instances
Show Violation Source # 
Instance details

Defined in Krank.Types

data ViolationLevel Source #

Constructors

Info 
Warning 
Error 
Instances
Show ViolationLevel Source # 
Instance details

Defined in Krank.Types

data KrankConfig Source #

Constructors

KrankConfig 

Fields

Instances
Show KrankConfig Source # 
Instance details

Defined in Krank.Types

data SourcePos Source #

Constructors

SourcePos 
Instances
Eq SourcePos Source # 
Instance details

Defined in Krank.Types

Ord SourcePos Source # 
Instance details

Defined in Krank.Types

Show SourcePos Source # 
Instance details

Defined in Krank.Types

data Localized t Source #

Represents a localized chunk of information in a file

Constructors

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

Defined in Krank.Types

Methods

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

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

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

Defined in Krank.Types

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
MonadKrank Krank Source #

The real monad implementation for Krank

Instance details

Defined in Krank