update-nix-fetchgit-0.2.9: A program to update fetchgit values in Nix expressions
Safe HaskellNone
LanguageHaskell2010

Update.Nix.FetchGit.Utils

Synopsis

Documentation

data RepoLocation Source #

A repo is either specified by URL or by Github owner/repo.

Constructors

URL Text 
GitHub 

Fields

GitLab 

Fields

Instances

Instances details
Show RepoLocation Source # 
Instance details

Defined in Update.Nix.FetchGit.Types

extractUrlString :: RepoLocation -> Text Source #

Get the url from either a nix expression for the url or a repo and owner expression.

extractFuncName :: NExprLoc -> Maybe Text Source #

Given an expression that is supposed to represent a function, extracts the name of the function. If we cannot figure out the function name, returns Nothing.

exprText :: NExprLoc -> Either Warning Text Source #

Get the string value of a particular expression, returns a Warning if the expression is not a string value.

TODO: Use evalExpr here

exprSpan :: NExprLoc -> SrcSpan Source #

Get the SrcSpan covering a particular expression.

note :: Warning -> Maybe a -> M a Source #