Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  Learning Haskell with the help of trees (Mateusz Kowalczyk)
   2. Re:  Problem with installing SDL (Mateusz Kowalczyk)


----------------------------------------------------------------------

Message: 1
Date: Wed, 14 May 2014 18:32:31 +0200
From: Mateusz Kowalczyk <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] Learning Haskell with the help of
        trees
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

On 05/10/2014 02:05 PM, Michal Kawalec wrote:
> Hi,
> 
> I am beginning to learn Haskell, and I decided to try to implement a
> tree. Its code is available at
> https://gist.github.com/anonymous/dd3eaa8bc36025d7751c
> 
> I would need some help with implementing the delete element procedure. I
> have a feeling I am doing something very unhaskelly there. Also, when
> deleting a node having two children, how do I run two actions (swap the
> values and delete the successor)?
> 
> Also, I would be delighted if you could take a look on the style and
> similar aspects, as they are best addressed at the beginning.
> 
> 
> 
> Thanks,
> Michal
> 
> 
> 
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
> 

I started a project which aims to implement paredit-like editing
functionality which effectively involves AST manipulation.

The final goal is to use it in Yi but that's far off and no Yi code
should be in the library itself.

There is very little code as I did not have much time for it, but
perhaps it something you might be interested in as practice. See [1]. It
basically involves implementing the functionality seen at [2] so that
editors in the future can bind keys to the functions and manipulate the
AST that way.

Let me know if you're interested in working on this.

[1]: https://github.com/Fuuzetsu/hs-paredit
[2]: http://mumble.net/~campbell/emacs/paredit.html

-- 
Mateusz K.


------------------------------

Message: 2
Date: Wed, 14 May 2014 21:06:55 +0200
From: Mateusz Kowalczyk <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] Problem with installing SDL
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

On 05/09/2014 10:36 AM, Julian Drube wrote:
> Thank you,
> 
> In the file `Graphics/UI/SDL/Events.hsc` I changed the line
> 
> import Data.Typeable (Typeable(typeOf),TypeRep)
> 
> to just
> 
> import Data.Typeable
> 
> and it compiles without problems now.
> 
> Julian
> 
> On Thursday 08 May 2014 17:43:41 Patrick Wheeler wrote:
>> The error is saying that it can not find `typeOf` in the `Typeable` class.
>>  This is because that function is not longer part of the `Typeable` in
>> ghc7.8 and moving forward.  Error like this are still be sorted out for ghc
>> 7.8.  You are on a bleeding edge version of ghc so packaging problems like
>> this are expected.  Package stability is usually marked by when the Haskell
>> Platform updates to the new ghc version.
>>
>> So if you want additional stability HP is where it is at. If you want to
>> live and the bleeding edge then you can download sdl with cabal unpack and
>> see if you can not fix the problem for yourself.
>>
>> Here is a link to the `Typeable` module in base:
>> http://hackage.haskell.org/package/base-4.7.0.0/docs/Data-Typeable.htmlOf
>>
>> There is replacement function for backward compatibility.
>> http://hackage.haskell.org/package/base-4.7.0.0/docs/Data-Typeable.html#v:ty
>> peOf
>>
>> If you fixed the import statement for all of the sdl modules, you might fix
>> the incompatibility with the new Typeable.  There will probably be a few
>> other issues that need solving after this one. I have updated several
>> packages on a case by case basis when I need them to new ghc version and
>> has been a lesson in understanding ghc errors and fixing them. If you have
>> the time I recommend giving it a shot.
>>
>> Patrick
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
> 

Please send a patch or a pull request to the maintainer.

-- 
Mateusz K.


------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 71, Issue 17
*****************************************

Reply via email to