ascii-flatten: Flattens European non-ASCII characaters into ASCII

[ library, mit, program, text ] [ Propose Tags ]

Flattens European non-ASCII characaters into ASCII

[Skip to Readme]


[Last Documentation]

  • Data
    • Char
      • Data.Char.AsciiFlatten


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],
Dependencies ascii-flatten, base (>=4.6 && <4.9), text [details]
License MIT
Copyright (c) 2016 Daniel Choi
Author Daniel Choi
Category Text
Home page
Uploaded by DanielChoi at 2016-05-11T17:06:06Z
Executables ascii-flatten
Downloads 1468 total (6 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-10-26 [all 3 reports]

Readme for ascii-flatten-

[back to package description]


This simple library provides a function to flatten non-ASCII European characters into nearest US-ASCII equivalent.

Hackage package:

See source for Data.Char.AsciiFlatten for the character conversions.

The character translation table is derived from this URL:


:m + Data.Char.AsciiFlatten
ghci> map asciiFlatten "café"
ghci> map asciiFlatten "Übermensch"

When performance matters, use :: (Char -> Char) -> Text -> Text

Command line usage

The package also installs a simple command line tool named ascii-flatten for use from the command line and in shell scripts:

$ echo café | ascii-flatten

Code generation

The code for this package is generated using the script in the project directory.