haskell Archives - AWS Managed Services by Anchor

HTTP Basic Authentication in Snap Framework

By | Technical | One Comment

Hi, I’m Geoffrey Roberts, one of the web developers at Anchor. I’d like to discuss something I’ve built in Haskell, and hopefully give you some ideas for other things you can do in terms of web development with the language. I’ve been working on some web frontends in Snap Framework lately, and came to a point where I needed to know who was accessing the frontend, and whether they were allowed to use it. Seeing as the application needed to support both human-visible and RESTful interfaces, I realised that I couldn’t really use any off the shelf authentication methods. While Snap does provide you with something out of the box to do authentication, it’s intended for human-usable interfaces only, since it’s reliant on cookie-identified sessions. Also, most of our other…

Read More

If your server is a function, is your company a library?

By | General | No Comments

Our Anchorite, Head of Engineering Andrew Cowie will be giving a talk next week at the Commerial Users of Functional Programming conference in Gothenburg, Sweden. The abstract for the talk, titled “If your server is a function, is your company a library?” This article gives an interesting perspective on some of the cool stuff our Engineering department is up to. ==== Haskell is lauded for being a good foundation for building high quality software. The strong type system eliminates huge classes of runtime errors, laziness-forced-purity aides in separating messy IO from pure computational work, and the wealth of tools like quickcheck mean that individual codebases can be robustly unit tested. That’s fine when your service runs from a single program. Building anything larger requires integration testing of components and that…

Read More