Skip to content

fluescher/hastistics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hastistics

Sort of LINQ for Haskell. It was developed as part of the course "Programming language concepts" at the University of Applied Sciences of Northwestern Switzerland.

Functionality

import Hastistics
import Hastistics.Data.CSV

result = select $
         valueOf "Gender" $ avgOf "Mark" $
         groupBy "Gender" $
         from (csvTable [toHSString, toHSDouble] csvString)

If you now print this, you get something like

+----------------------+----------------------+
| "Gender"             | "Average of Mark"    |
+----------------------+----------------------+
| M                    | 4.4375               |
| W                    | 4.75                 |
+----------------------+----------------------+

Examples

You find more examples in the tests directory.

About

Sort of LINQ for Haskell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published