GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - MackeyRMS/string-variants: Newtypes over Text, allowing for safer application code by eliminating edge cases

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

31 Commits
31 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
src/Data
src/Data
 
 
test
test
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
cabal.haskell-ci
cabal.haskell-ci
 
 
cabal.project
cabal.project
 
 
flake.lock
flake.lock
 
 
flake.nix
flake.nix
 
 
package.yaml
package.yaml
 
 
stack.yaml
stack.yaml
 
 
string-variants.cabal
string-variants.cabal
 
 

Repository files navigation

String Variants

This library provides newtypes of Text for use in application code:

  • NonEmptyText: a not-empty not-completely-whitespace, length limited newtype over Text
  • NullableNonEmptyText: a NonEmptyText that may be empty, totally whitespace, or even null while still successfully parsing as NullableNonEmptyText Nothing. As of aeson-2.2.0.0, fields of this type are optional for records using a Data.Aeson.Options with omitNothingFields == True. If using aeson <2.2.0.0, use Maybe NullableNonEmptyText if you want the field to be optional.
  • Prose: a whitespace-stripped newtype over Text

This library is not API stable or fully documented yet, however it is used in production code. Breaking changes may be introduced with major version updates.

About

Newtypes over Text, allowing for safer application code by eliminating edge cases

Resources

Readme
License
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.