https://github.com/montefra/email_compare
Haskell code to compare email lists stored in csv files
https://github.com/montefra/email_compare
Last synced: 10 months ago
JSON representation
Haskell code to compare email lists stored in csv files
- Host: GitHub
- URL: https://github.com/montefra/email_compare
- Owner: montefra
- License: bsd-2-clause
- Created: 2014-12-21T14:01:16.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-29T16:57:53.000Z (over 11 years ago)
- Last Synced: 2025-03-06T15:52:01.036Z (over 1 year ago)
- Language: Haskell
- Size: 703 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Extract emails from csv files and compare them
Author: Francesco Montesano
email: franz.bergesund@gmail.com
Licence: freeBSD [the licence file](LICENCE)
##Dependences
Text.Regex.Posix
##Compilation
To compile the code simply go to the `src` directory and type
ghc --make Main
If you get the following error
/path/to/bin/ld: cannot find -ltinfo
make sure to have the development version of libtinfo
On OpenSuse you can get it running
zypper install ncurses-devel
##Synopsis
The code does provide an interactive console and no command line arguments.
After starting the code with
/path/to/Main
the user is greeted by
Welcome!
For a list of available commands type 'help'
To exit type 'exit'
~>
The available commands are
+ **help**: print this help
+ **load tag filename**: load all the email addresses from
file *name* and attach them to *tag* keyword.
Existing tags will be silently overwritten.
+ **diff tag1 tag2**: show the emails that are in *tag1*
but not in *tag2*
+ **listtags**: list the tags already present
+ **printall**: print the full dictionary
+ **print tag**: print the content of tag
+ **exit**: exit the program
##Notes
This is my first attempt at Haskell, and in general to functional programming.
So I beg forgiveness for the style. But the code works.
My plan is to slowly keep improving the code. My dream is to get to a GUI.