Making a choice from a list in Haskell, Vty (part 4)

After part 3 in this series, which might have been the longest post I’ve ever put on this blog, follows a much short post. In fact it’s so short it’s rather silly. In this post I’ll modify the Option type to render into multiple lines; two in fact (it’s easy to see that it would …

Continue reading ‘Making a choice from a list in Haskell, Vty (part 4)’ »

Share

Making a choice from a list in Haskell, Vty (part 3)

This is the third part, and it’s likely to be the longest one in the series. The three previous parts have been rather short, but now it’s time for a longer post because in this one I completely change the representation of the options that are rendered. Instead of using a list and an integer …

Continue reading ‘Making a choice from a list in Haskell, Vty (part 3)’ »

Share

Ping server in Haskell (not that kind of ping, and rather silly)

Yesterday I needed to do some tests involving tunneling of network connections. Rather than firing up the full client-server setup that I want to tunnel I thought I’d use someting simple to test with first. Instead of looking online for a simple server to use, or hack one up using netcat, or even hack one …

Continue reading ‘Ping server in Haskell (not that kind of ping, and rather silly)’ »

Share

Making a choice from a list in Haskell, Vty (part 2)

Following on the previous part is another baby step. This just changes the options from a list of strings to a list of objects (the only requirement that they implement Pretty): data Option = Option { optionValue::String } deriving (Show)   instance Pretty Option where pretty (Option s) = string s After this it’s an …

Continue reading ‘Making a choice from a list in Haskell, Vty (part 2)’ »

Share

Making a choice from a list in Haskell, Vty (part 1)

After posting the zeroth part of this series I realised I hadn’t said anything about the final goal of this exercise. The first post contained code for choosing one one-line string (String) out of a list of one-line strings ([String]). What I really want is the ability to choose one item out of a list …

Continue reading ‘Making a choice from a list in Haskell, Vty (part 1)’ »

Share

Setting up Epiphany to play with Seed extensions

Since the Python extensions to Epiphany have been removed from the repository I thought it was high time to start playing with what seems to be the replacement to Python extensions: Seed extensions. The first step is of course to get a version of Epiphany that supports Seed extensions. After a few emails on the …

Continue reading ‘Setting up Epiphany to play with Seed extensions’ »

Share