• Stars
    star
    1
  • Language
    Haskell
  • License
    MIT License
  • Created almost 8 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Path helpers for my personal projects

path-extra

https://github.com/d12frosted/path-extra/workflows/CI/badge.svg

Path helpers for my personal projects. Currently exposes only one module - Path.Parse. Please refer to it for list of all exposed functions. But let me show you two functions which I use the most.

> :t parseFilePath
parseFilePath
  :: (MonadThrow m, MonadIO m) => Text -> m (Path Abs File)
位> parseFilePath "$XDG_CONFIG_HOME/.gitignore"
"/Users/d12frosted/.environment/.gitignore"> :t parseDirPath
parseDirPath
  :: (MonadThrow m, MonadIO m) => Text -> m (Path Abs Dir)
位> parseDirPath "$XDG_CONFIG_HOME"
"/Users/d12frosted/.environment/"> parseDirPath "$FALSE"
*** Exception: Could not find value of $FALSE in environment.> parseDirPath "~/Developer"
"/Users/d12frosted/Developer/"

Both of them are great for parsing path from user input. Because they expand environment variables and ~/.

At some extent this library was created after CanonicalPath was deprecated. Thanks to Chris Done now we have a better type for path.

Using with stack

Just add path-extra to stack.yaml file.

extra-deps:
- git: https://github.com/d12frosted/path-extra
  commit: 47d59985c7ad939598d35cbe471fe49b930b3484

More Repositories

1

homebrew-emacs-plus

Emacs Plus formulae for the Homebrew package manager
Ruby
2,143
star
2

vulpea

A collection of functions for note taking based on `org` and `org-roam`.
Emacs Lisp
222
star
3

flyspell-correct

Distraction-free words correction with flyspell via selected interface.
Emacs Lisp
196
star
4

environment

dotfiles
Emacs Lisp
121
star
5

elpa-mirror

Mirror for some Emacs package archives
Emacs Lisp
96
star
6

dotbot-brew

Install brew packages using dotbot
Python
42
star
7

vino

It's your cellar, your dear cantina.
Emacs Lisp
36
star
8

counsel-osx-app

Launch OSX applications via ivy interface
Emacs Lisp
24
star
9

UnityLibrarySwitcher

Unity plugin for switching build targets, git branches without endless assets reimport. Not maintained anymore.
C#
19
star
10

git-config-manager

Manage git repository configurations with ease
Haskell
8
star
11

mirror-elpa

(To) mirror Emacs Lisp Package Archive(s)
Shell
8
star
12

d12frosted.io

Personal site
Haskell
8
star
13

orgability

Reading list manager for Emacs with offline access support.
Emacs Lisp
7
star
14

publicatorg

Make your vulpea notes public
Emacs Lisp
5
star
15

fancy-yank

apply transformation upon yanking
Emacs Lisp
4
star
16

emacs-addiction-mode

M-x doctor instead of C-x C-c
Emacs Lisp
4
star
17

barberry.io

Emacs Lisp
4
star
18

emacs-ukrainian-input-method

Ukrainian macOS-like input method
Emacs Lisp
4
star
19

org-drawer-list

Tame your lists in a drawer
Emacs Lisp
3
star
20

emacs-plus-basis

Emacs Lisp
3
star
21

CanonicalPath

Abstract data type for canonical paths with some pretty operations. Not maintained anymore.
Haskell
3
star
22

env-extra

Safe helpers for accessing and modifying environment variables
Haskell
2
star
23

talks

TeX
2
star
24

d12frosted

1
star
25

bomberman-player

Haskell
1
star
26

fish-mode

Major mode for editing fish shell scripts
Emacs Lisp
1
star