haskell / haskell/filepath

Why takeExtensions returns dot?

Open
#252 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Haskell
Stars
74
Forks
38
PR merge metrics
No merged PRs in 30d

Description

Hi,

I suggest to add an alternative to takeExtensions which drops heading dot

```haskell
takeExtensions' "/directory/path.ext" == Just "ext"
takeExtensions' "file.tar.gz" == Just "tar.gz"
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the takeExtensions entry point and the surrounding tests or documentation in the filepath library. Check the existing dot-preserving behavior, then define the alternative's behavior for the examples in the issue and verify both examples and existing behavior with the test suite.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.