Bluish Coder

Programming Languages, Martials Arts and Computers. The Weblog of Chris Double.

Posts tagged “haskell”

22 posts

Handling POST requests with Ur/Web

Ur/Web makes it easy to write web applications that have HTML forms and handle the posted data. It gets a bit trickier if you have a POST handler that does not have an HTML form in the web application but is instead called by an external service. The following is a function that handles a POST request field containing a... more →

Simple Ur/Web Example

I've been admiring Ur/Web from afar for a while now and I've decided to dive into it and try it out on a project. Ur/Web is described at the website as: more →

Vorbis Player implemented in Pure

After writing the preforking echo server example in Pure I wanted to try something a bit more complex. I've written Ogg players in various languages before so I decided to do one in Pure to compare. Here's some of the ones I've written in the past: more →

Dealing with my archived Blogger posts

I've stopped using Blogger for the weblog and have moved to using Jekyll. I've set things up so I can edit the posts on my local push, push to my server using git and it publishes the new post. Blogger provides a way to export all existing posts and comments as an XML file. I used this to manually import... more →

File Uploads with HAppS

I've updated the Not a HAppS Tutorial cookbook with an example of how to handle file uploads using file input types in forms. Next step is to take a look at how sessions and session data is handled. more →

Not a Tutorial on HAppS

A long time ago I took a look at HAppS, a Haskell web application framework. I recently got the excellent book Real World Haskell and have been working through the book. I wanted something to explore while doing this so I revisited HAppS to play around with web programming in Haskell. There's some documentation out there on HAppS, compared to... more →

Dynamic Compilation and Loading of Modules in Haskell

The Haskell system GHC has libraries that provide the ability to compile Haskell code and dynamically load it into a running Haskell program. A library that provides this functionality is hs-plugins. Unfortunately hs-plugins doesn't work with the latest GHC release, 6.10.1. There is an API to the internals of GHC that allows implementing runtime compilation and loading. The api is... more →

The Left Fold Enumerator for i/o

There have been some interesting papers and talks about approaches to handling i/o using left folds recently. First was the galois tech talk about a safe and efficient i/o interface in Haskell using left fold enumerators. PDF slides are here. The example web server, Hyena, is available on github. Oleg Kiselyov then gave a talk at DEFUN about using left... more →

Minix and Haskell

There's an interesting post on the Haskell group about Minix and the possibility of writing OS core components in Haskell for it. Minix is an open source operating system that's been around for quite some time. I first tried it out sometime in the early 90's after downloading over some very slow dialup connection connected to a BBS. From the... more →

Linspire to use Haskell

According to the Haskell Weekly News, the OS team at Linspire are standardising on on Haskell as their preferred language for core OS development. Linspire is a Linux distribution. The announcement from the Linspire team is here. more →

Playing with HAppS

I downloaded HAppS, the Haskell Application Server, I mentioned previously to try it out. I already had GHC installed so I could build darcs but I needed a few additional packages to install HAppS. Most of these I obtained via apt-get but I had to manually install the following two: more →

Source for Unify Available

The source for the system presented in the paper 'A Language Based Approach to Unifying Events and Threads' is now available. Download information is available at the Unify home page. more →

Space Invaders Emulator in Haskell

I been tinkering with Haskell lately to get familiar with a purely functional programming language. As a project to work on I'm trying to port the Space Invaders emulator I wrote for Factor to Haskell. I'm pretty much a complete newbie to Haskell and have no idea on the best ways to implement this type of thing. I'm starting simple,... more →

Building wxFruit and Yampa with GHC 6.4.x

wxFruit is a Haskell GUI library based on Functional Reactive Programming concepts. It uses wxWindows as its underlying GUI framework. For FRP it uses the Haskell FRP framework Yampa. Both libraries are relatively old and seem to have suffered bitrot as I couldn't get them to compile using a recent GHC build (GHC 6.4.x). A bit of searching came across... more →

Haskell Gameboy Emulator

OmegaGB is a Nintendo Gameboy Emulator written in Haskell. The author has a devlog where they are posting information about the implementation along with screen shots and source code. more →

jhc - Optimizing Haskell Compiler

jhc looks interesting. It's an optimizing Haskell compiler "...that aims to produce very efficient code as well as explore novel compilation techniques in an attempt to make them practical." Two things from the site that interested me were: more →