Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
A. Lindberg's user avatar
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, ...
Steven L.'s user avatar
  • 425
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 ...
Jackson Jacob's user avatar
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 ...
Minsheng Liu's user avatar
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 ...
jjwchoy's user avatar
  • 131
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 ...
Carcigenicate's user avatar