Skip to content

Erratas in the article: Functional Reactive Programming, Refactored (Haskell Symposium 2016) #106

@chriz-zeller

Description

@chriz-zeller

Hi,

while I was reading parts of this article:

Functional Reactive Programming, Refactored
Haskell 2016 Proceedings of the 9th International Symposium on Haskell
Pages 33-44

I found two points that confused me and I think that there is something wrong with it:

In Section 4.1 Reader

There is a parenthesis mismatch in

  embed (    runReaderS testMSF (GameSettings 0 3)
         &&& runReaderS testMSF (GameSettings 0 2))
        (repeat 5 ()))

I guess it should be:

  embed (    runReaderS testMSF (GameSettings 0 3)
         &&& runReaderS testMSF (GameSettings 0 2)
        )
        (
         repeat 5 ()
        )

The result of this function is stated as:

[ ((1, False), (1, False)), ((2, False), (2, False))
, ((3, False), (3, True )), ((4, True ), (4, True ))
, ((5, True ), (5, True ))]

but I think it should be ((2, False), (2, True)):

[ ((1, False), (1, False)), ((2, False), (2, True ))
, ((3, False), (3, True )), ((4, True ), (4, True ))
, ((5, True ), (5, True ))]

I hope this is the right place to mention these issues.

Best,
Christina

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions