[Haskell-beginners] Problem with Graphics.SOE

Vitaly Dolgov vitaly.dolgov at posteo.net
Mon Mar 29 16:10:05 UTC 2021


Thanks, Thomas!

This was exactly the case. 

In Fedora the package is `xorg-x11-fonts-misc`.

Vitaly

On Mon, 29 Mar 2021 14:32:38 +0200
Thomas Hallgren <hallgren at chalmers.se> wrote:

> Hi,
> 
> I did a quick grep in the HGL source code, and it looks like it is
> trying to use a font called "9x15", which is one of the traditional X
> Windows fonts, and they are not always installed by default on modern
> Linux systems. You can see which X fonts are installed by running the
> xlsfonts command. In Ubuntu / Debian, the "9x15" font is included in
> a package called xfonts-base, which is installed by default however,
> so my best guess is that you are using another flavour of Linux where
> you need to install some additional font package to get that font...
> 
> Hope this helps,
> Thomas H
> 
> On 2021-03-29 12:18, Vitaly Dolgov wrote:
> > Hi, everybody!
> > 
> > I'm trying to do an example from the book "The Haskell
> > School of Expression", which originally uses `SOEGraphics`, I use
> > `Graphics.SOE` instead, but I get the following error on each run:
> > 
> > `user error (loadQueryFont)`
> > 
> > I have no idea how to approach the problem... `:trace` outputs an
> > empty exception :( Could you please help me to solve this?
> > 
> > My environment is: Linux, ghc 8.10.4, HGL 3.2.3.2
> > The code is quite basic:
> > 
> > ```
> > import Graphics.SOE
> > 
> > main
> >    = runGraphics $
> >      do w <- openWindow "Hello World!" (300, 300)
> >         drawInWindow w (text (100, 200) "Hello World!")
> >         k <- getKey w
> >         closeWindow w
> > ```
> > 
> > Thank you,
> > Vitaly
> > _______________________________________________
> > Beginners mailing list
> > Beginners at haskell.org
> > http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
> > 
> 
> 
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners



More information about the Beginners mailing list