Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data Result a
- type Shortcut = Maybe Text -> Text -> Result Text
- allShortcuts :: [([Text], Shortcut)]
- wikipedia :: Shortcut
- tvtropes :: Shortcut
- facebook :: Shortcut
- vk :: Shortcut
- googleplus :: Shortcut
- twitter :: Shortcut
- juick :: Shortcut
- google :: Shortcut
- duckduckgo :: Shortcut
- yandex :: Shortcut
- baidu :: Shortcut
- npm :: Shortcut
- jam :: Shortcut
- rubygems :: Shortcut
- pypi :: Shortcut
- metacpanPod :: Shortcut
- metacpanRelease :: Shortcut
- hackage :: Shortcut
- cargo :: Shortcut
- pub :: Shortcut
- hex :: Shortcut
- cran :: Shortcut
- swiprolog :: Shortcut
- dub :: Shortcut
- bpkg :: Shortcut
- pear :: Shortcut
- github :: Shortcut
- gitlab :: Shortcut
- bitbucket :: Shortcut
- googleplay :: Shortcut
- chocolatey :: Shortcut
- braumeister :: Shortcut
- debian :: Shortcut
- aur :: Shortcut
- mint :: Shortcut
- fedora :: Shortcut
- gentoo :: Shortcut
- opensuse :: Shortcut
- marmalade :: Shortcut
- melpa :: Shortcut
- elpa :: Shortcut
- packagecontrol :: Shortcut
- atomPackage :: Shortcut
- atomTheme :: Shortcut
- jedit :: Shortcut
- vim :: Shortcut
- operaExt :: Shortcut
- operaTheme :: Shortcut
- firefox :: Shortcut
- chrome :: Shortcut
- ghcExt :: Shortcut
- rfc :: Shortcut
- ecma :: Shortcut
- cve :: Shortcut
Documentation
allShortcuts :: [([Text], Shortcut)] Source
A list of all functions included in this module, together with suggested names for them.
Encyclopedias
Link example (English Wikipedia):
grey-headed flying fox
→
https://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
Link example (trope):
so bad, it's good
→
http://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
Link example (username):
SergeyBrin
→
SergeyBrin
Link example (username with +
):
+SergeyBrin
→
+SergeyBrin
Link example (full name – will just be concatenated):
Sergey Brin
→
Sergey Brin
Link example (ID):
Sergey Brin
→
Sergey Brin
Link example (hashtag):
#Australia
→
#Australia
Microblogs
Major search engines
Link example:
random query
→
random query
Link example:
random query
→
random query
Yandex (Russian search engine)
Link example:
random query
→
random query
Baidu (Chinese search engine)
Link example:
random query
→
random query
Programming language libraries
Ruby – RubyGems.org
Link example:
github-markdown
→
github-markdown
metacpanPod :: Shortcut Source
Perl – MetaCPAN (by module)
Link example:
Text::Markdown
→
Text::Markdown
metacpanRelease :: Shortcut Source
Perl – MetaCPAN (by release)
Link example:
Text-Markdown
→
Text-Markdown
PHP – PEAR
Link example:
Text_Wiki_Doku
→
Text_Wiki_Doku
Code hosting
Link example:
aelve/shortcut-links
→
aelve/shortcut-links
The repository owner can also be given as an option:
Link example:
learnyou/lysa
→
learnyou/lysa
The repository owner can also be given as an option:
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).
OS packages
Mobile
Android – Google Play (formerly Play Market)
Link example:
Opera Mini
→
Opera Mini
Windows
OS X
braumeister :: Shortcut Source
Braumeister (Homebrew formulas)
Link example:
multimarkdown
→
multimarkdown
Linux
Gentoo – packages
Link example:
dev-lang/ghc
→
dev-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.
Addons
Text editors
Emacs – Marmalade
Link example:
markdown-mode
→
markdown-mode
Emacs – MELPA
Link example:
markdown-mode
→
markdown-mode
packagecontrol :: Shortcut Source
Sublime Text – Package Control
Link example:
MarkdownEditing
→
MarkdownEditing
atomPackage :: Shortcut Source
Atom – packages
Link example:
tidy-markdown
→
tidy-markdown
Atom – themes
Link example:
atom-material-ui
→
atom-material-ui
jEdit – packages
Link example:
MarkdownPlugin
→
MarkdownPlugin
Vim – scripts
Link example (ID):
haskell.vim
→
haskell.vim
Browsers
Opera – themes
Link example:
Space theme
→
Space theme
Firefox – Add-ons (extensions, themes)
Link example:
[tree-style-tab]
→
Tree Style Tab
Chrome – Chrome Web Store (extensions, apps, themes)
Link example:
[hdokiejnpimakedhajhdlcegeplioahd]
→
LastPass
Manuals
GHC (Glasgow Haskell Compiler) extensions
Link example:
ViewPatterns
→
ViewPatterns
Standards and databases
Ecma standards and technical reports
Link example (standard):
ECMA-262
→
ECMA-262
Link example (technical report):
TR/71
→
TR/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).
CVEs (Common Vulnerabilities and Exposures)
Link example:
CVE-2014-10001
→
http://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”.