Skip to content

Change type of log and print to return Unit #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 12, 2016

Conversation

cdepillabout
Copy link
Member

This pull request changes the type of log and print to return Unit instead of String and a respectively.

This closes issue #41.

This pull request also contains two commits to clean up the compiler warnings and indentation in the Examples.purs file.

@cdepillabout
Copy link
Member Author

It might be easier to see what was changed by looking at the commits individually:

cdepillabout@4abdb37

cdepillabout@a4e9bf8

cdepillabout@e458d9d

cdepillabout@a7f04cd

@cdepillabout
Copy link
Member Author

Since the type of log and print were changed, this will require a version bump to 0.14.

Also, the docs should be regenerated. I didn't include the updated docs in this commit.

@jdegoes
Copy link
Contributor

jdegoes commented Jan 7, 2016

👍 Can you squash all the commits?

`log` from `Control.Monad.Aff.Console` is a wrapper around `log` from
`Control.Monad.Eff.Console`.

The type of `log` from `Control.Monad.Eff.Console` is as follows:

    log :: forall eff. String -> Eff (console :: CONSOLE | eff) Unit

However, `log` from `Control.Monad.Aff.Console` is as follows:

    log :: forall eff. String -> Aff (console :: CONSOLE | eff) String

This pull request makes `log` return `Unit` instead of `String`.  This
closes issue purescript-contrib#41.

This also changes the type of `Control.Monad.Aff.Console.print` to
return `Unit`, and cleans up warnings and weird indentation in the
`examples/src/Examples.purs` file.
@cdepillabout
Copy link
Member Author

All code has been squashed in commit ae9c72f.

jdegoes added a commit that referenced this pull request Jan 12, 2016
Change type of log and print to return Unit
@jdegoes jdegoes merged commit e239f53 into purescript-contrib:master Jan 12, 2016
@jdegoes
Copy link
Contributor

jdegoes commented Jan 12, 2016

@cdepillabout Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants