shortcut-links-0.1.0.0: Link shortcuts for use in text markup

Safe HaskellSafe
LanguageHaskell2010

ShortcutLinks.All

Contents

Synopsis

Documentation

type Shortcut = Maybe Text -> Text -> Result Text Source

allShortcuts :: [([Text], Shortcut)] Source

A list of all functions included in this module, together with suggested names for them.

Encyclopedias

wikipedia :: Shortcut Source

Wikipedia

Link example (English Wikipedia): grey-headed flying foxhttps://en.wikipedia.org/wiki/Grey-headed_flying_fox

Link example (Russian Wikipedia, but any language code can be used): Haskell)https://ru.wikipedia.org/wiki/Haskell

tvtropes :: Shortcut Source

TV Tropes

Link example (trope): so bad, it's goodhttp://tvtropes.org/pmwiki/pmwiki.php/Main/SoBadItsGood

Link example (series): Elementary)http://tvtropes.org/pmwiki/pmwiki.php/Series/Elementary

You can give anything as a category instead of “series”, it'll be capitalised but nothing else.

Social networks

vk :: Shortcut Source

Vkontakte (Вконтакте)

Link example (username): greenhttps://vk.com/green

Link example (ID):

1337https://vk.com/id1337

googleplus :: Shortcut Source

Google+

Link example (username): SergeyBrinSergeyBrin

Link example (username with +): +SergeyBrin+SergeyBrin

Link example (full name – will just be concatenated): Sergey BrinSergey Brin

Link example (ID): Sergey BrinSergey Brin

Link example (hashtag): #Australia#Australia

Microblogs

twitter :: Shortcut Source

Twitter

Link example (username): kmettkmett

Link example (username with @): @kmett@kmett

Link example (hashtag): #haskell#haskell

juick :: Shortcut Source

Juick

Link example (username): thefishthefish

Link example (username with @): @thefish@thefish

Link example (tag): *Haskell*Haskell

Major search engines

yandex :: Shortcut Source

Yandex (Russian search engine)

Link example: random queryrandom query

baidu :: Shortcut Source

Baidu (Chinese search engine)

Link example: random queryrandom query

Programming language libraries

npm :: Shortcut Source

Node.jsNPM

Link example: markdownmarkdown

jam :: Shortcut Source

JavascriptJam

Link example: pagedownpagedown

pypi :: Shortcut Source

PythonPyPI

Link example: MarkdownMarkdown

metacpanPod :: Shortcut Source

PerlMetaCPAN (by module)

Link example: Text::MarkdownText::Markdown

metacpanRelease :: Shortcut Source

PerlMetaCPAN (by release)

Link example: Text-MarkdownText-Markdown

hackage :: Shortcut Source

HaskellHackage

Link example: cmarkcmark

cargo :: Shortcut Source

RustCargo

Link example: hoedownhoedown

pub :: Shortcut Source

Dartpub

Link example: md_procmd_proc

hex :: Shortcut Source

ErlangHex

Link example: earmarkearmark

cran :: Shortcut Source

RCRAN

Link example: markdownmarkdown

swiprolog :: Shortcut Source

SWI-Prologpackages

Link example: markdownmarkdown

dub :: Shortcut Source

DDUB

Link example: dmarkdowndmarkdown

bpkg :: Shortcut Source

Bashbpkg

Link example: markdownmarkdown

Code hosting

github :: Shortcut Source

Github

Link example: aelve/shortcut-linksaelve/shortcut-links

The repository owner can also be given as an option:

shortcut-links)shortcut-links

gitlab :: Shortcut Source

Gitlab

Link example: learnyou/lysalearnyou/lysa

The repository owner can also be given as an option:

lysa)lysa

Note that links like https://gitlab.com/owner work but are going to be automatically redirected to either https://gitlab.com/u/owner or https://gitlab.com/groups/owner, depending on whether it's a user or a team. So, it's a case when the “links have to look as authentic as possible” principle is violated (but c'mon, this “u” thing looks ugly anyway).

bitbucket :: Shortcut Source

Bitbucket

Link example: bos/textbos/text

The repository owner can also be given as an option:

text)text

OS packages

Mobile

googleplay :: Shortcut Source

AndroidGoogle Play (formerly Play Market)

Link example: Opera MiniOpera Mini

Windows

OS X

braumeister :: Shortcut Source

Braumeister (Homebrew formulas)

Link example: multimarkdownmultimarkdown

Linux

debian :: Shortcut Source

Debianpackages

Link example (stable distribution): ghcghc

Link example (experimental distribution, but could be any other): ghc)ghc

aur :: Shortcut Source

Arch LinuxAUR (“user repository”)

Link example: ghc-gitghc-git

mint :: Shortcut Source

Linux Mintpackages

Link example: ghcghc

fedora :: Shortcut Source

Fedorapackages

Link example: ghcghc

gentoo :: Shortcut Source

Gentoopackages

Link example: dev-lang/ghcdev-lang/ghc

Link example (category as an option): ghc)ghc

Note that if you don't specify any category, the link would still work – but there are a lot of packages with overlapping names (like “ace”, “csv”, “http”), and such links would lead to search pages listing several packages. So, it's better to include categories.

opensuse :: Shortcut Source

openSUSEpackages

Link example: ghcghc

Addons

Text editors

melpa :: Shortcut Source

EmacsMELPA

Link example: markdown-modemarkdown-mode

elpa :: Shortcut Source

EmacsELPA

Link example: undo-treeundo-tree

vim :: Shortcut Source

Vimscripts

Link example (ID): haskell.vimhaskell.vim

Browsers

operaExt :: Shortcut Source

Operaextensions

Link example: AmazonAmazon

firefox :: Shortcut Source

FirefoxAdd-ons (extensions, themes)

Link example: [tree-style-tab]Tree Style Tab

chrome :: Shortcut Source

ChromeChrome Web Store (extensions, apps, themes)

Link example: [hdokiejnpimakedhajhdlcegeplioahd]LastPass

Manuals

ghcExt :: Shortcut Source

GHC (Glasgow Haskell Compiler) extensions

Link example: ViewPatternsViewPatterns

Standards and databases

rfc :: Shortcut Source

RFCs

Link example: RFC 2026RFC 2026

Precise format of recognised text: optional “rfc” (case-insensitive), then arbitrary amount of spaces and punctuation (or nothing), then the number. Examples: “RFC 2026”, “RFC-2026”, “rfc2026”, “rfc #2026”, “2026”, “#2026”.

ecma :: Shortcut Source

Ecma standards and technical reports

Link example (standard): ECMA-262ECMA-262

Link example (technical report): TR/71TR/71

Precise format of recognised text for standards: optional “ECMA” (case-insensitive), then arbitrary amount of spaces and punctuation (or nothing), then the number. Examples: “ECMA-262”, “ECMA 262”, “ecma262”, “ECMA 262”.

Format for technical reports is the same, except that “TR” (instead of “ECMA”) is not optional (so, if there's only a number given, it's considered a standard and not a technical report).

cve :: Shortcut Source

CVEs (Common Vulnerabilities and Exposures)

Link example: CVE-2014-10001http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-10001

Precise format of recognised text: optional “cve” (case-insensitive), then arbitrary amount of spaces and punctuation (or nothing), then the year, ‘-’, and a number. Examples: “CVE-2014-10001”, “cve 2014-10001”, “2014-10001”.