nvfetcher-0.6.2.0: Generate nix sources expr for the latest version of packages
Copyright(c) 2021-2022 berberman
LicenseMIT
Maintainerberberman <berberman@yandex.com>
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

NvFetcher.GetGitCommitDate

Description

This module provides mechanisms for obtaining the git commit date. The cloned repo will not be preserved.

Synopsis

Types

newtype DateFormat Source #

strftime format

Nothing defaults to %Y-%m-%d

Constructors

DateFormat (Maybe Text) 

Instances

Instances details
Generic DateFormat Source # 
Instance details

Defined in NvFetcher.Types

Associated Types

type Rep DateFormat :: Type -> Type #

Show DateFormat Source # 
Instance details

Defined in NvFetcher.Types

Binary DateFormat Source # 
Instance details

Defined in NvFetcher.Types

Default DateFormat Source # 
Instance details

Defined in NvFetcher.Types

Methods

def :: DateFormat #

NFData DateFormat Source # 
Instance details

Defined in NvFetcher.Types

Methods

rnf :: DateFormat -> () #

Eq DateFormat Source # 
Instance details

Defined in NvFetcher.Types

Ord DateFormat Source # 
Instance details

Defined in NvFetcher.Types

Hashable DateFormat Source # 
Instance details

Defined in NvFetcher.Types

Pretty DateFormat Source # 
Instance details

Defined in NvFetcher.Types

Methods

pretty :: DateFormat -> Doc ann #

prettyList :: [DateFormat] -> Doc ann #

type Rep DateFormat Source # 
Instance details

Defined in NvFetcher.Types

type Rep DateFormat = D1 ('MetaData "DateFormat" "NvFetcher.Types" "nvfetcher-0.6.2.0-CqtTIBGHKsO3sQLE2GiJmY" 'True) (C1 ('MetaCons "DateFormat" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))

data GetGitCommitDate Source #

Get the commit date by using shallow clone

_gformat is in. Note: Requires git >= 2.5

Constructors

GetGitCommitDate 

Fields

Instances

Instances details
Generic GetGitCommitDate Source # 
Instance details

Defined in NvFetcher.Types

Associated Types

type Rep GetGitCommitDate :: Type -> Type #

Show GetGitCommitDate Source # 
Instance details

Defined in NvFetcher.Types

Binary GetGitCommitDate Source # 
Instance details

Defined in NvFetcher.Types

NFData GetGitCommitDate Source # 
Instance details

Defined in NvFetcher.Types

Methods

rnf :: GetGitCommitDate -> () #

Eq GetGitCommitDate Source # 
Instance details

Defined in NvFetcher.Types

Ord GetGitCommitDate Source # 
Instance details

Defined in NvFetcher.Types

Hashable GetGitCommitDate Source # 
Instance details

Defined in NvFetcher.Types

Pretty GetGitCommitDate Source # 
Instance details

Defined in NvFetcher.Types

type Rep GetGitCommitDate Source # 
Instance details

Defined in NvFetcher.Types

type Rep GetGitCommitDate = D1 ('MetaData "GetGitCommitDate" "NvFetcher.Types" "nvfetcher-0.6.2.0-CqtTIBGHKsO3sQLE2GiJmY" 'False) (C1 ('MetaCons "GetGitCommitDate" 'PrefixI 'True) (S1 ('MetaSel ('Just "_gurl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "_grev") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "_gformat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DateFormat))))
type RuleResult GetGitCommitDate Source # 
Instance details

Defined in NvFetcher.Types

Rules

Functions