All Questions
6 questions
3
votes
1
answer
574
views
Text-based menu to manipulate a database text file
I am making a program that lets a user manipulate a database (a text file).
In the code I am posting, I show only 2 of the menu choices, namely "createdb" and "deletedb", and a few functions I made ...
5
votes
1
answer
81
views
Interpreting database values as times and integers
I am working through Chapter 10 of Haskell Programming from First Principles.
I've gotten the code to work, but I am uneasy about the fact that a few of my functions - namely, ...
4
votes
1
answer
107
views
Updates list in haskell to remove duplication
The task in question allows a user to re-rate a film such that only the latest rating from the user should remain in the database.
Initially I solved this problem in a very basic manor?
This was my ...
2
votes
0
answers
70
views
Auto-expire key/value database (with different key types) in Haskell using acid-state
I am making a key-value database using acid-state. It has three similar "pools", one for cookie records, one for email verification of new accounts, and the last for resetting passwords.
There are ...
3
votes
0
answers
88
views
Abstract Key Value Store
I'm attempting to define an abstract interface for a key value store.
Some requirements:
Once a key has been written it should never be overwritten (although it may be deleted
Transactions with ...
5
votes
1
answer
236
views
A simple database
After failing miserably to get SQL to work with Haskell, I decided to try making my own system. It's fairly simple, but works well for simple jobs (I made it to handle highscores for a number guessing ...