Skip to content

Chapter 3 - repl print out for "flip" needs updating? #326

Description

Should this repl printout in Chapter 3 be updated?

Book

> import Prelude
> :type flip
forall a b c. (a -> b -> c) -> b -> a -> c

repl (for PureScript 0.14.1)

> import Prelude
> :type flip
forall (a :: Type) (b :: Type) (c :: Type). (a -> b -> c) -> b -> a -> c

In general, would it be better if an edit suggestion like this comes through a PR? (I thought I'd start small, though.)

Activity

  1. milesfrain commented on Apr 28, 2021

    @milesfrain
    Member

    Wow. It looks like all :type output has been "clarified" with additional kind information (e.g. the kind of a type).

    > :t flip
    forall (a :: Type) (b :: Type) (c :: Type). (a -> b -> c) -> b -> a -> c
    
    > :t const
    forall (a :: Type) (b :: Type). a -> b -> a
    
    > :t add
    forall (a :: Type). Semiring a => a -> a -> a
    
    > :t map
    forall (f :: Type -> Type) (a :: Type) (b :: Type). Functor f => (a -> b) -> f a -> f b

    In general, would it be better if an edit suggestion like this comes through a PR?

    Either a PR or issue is fine. Thanks for reporting.

    In this case, I think there's a lot of stuff to sort out, such as:

    Your proposal to include a "Don't worry" note in #260 (comment) may also be a reasonable temporary fix.

    Feel free to make a PR for any of the above todos. You're also welcome to copy over this series map/flip examples and explanation, if you think that would make sense in Ch4. I'd also be happy to make these edits, but probably won't get around to it within the next month, and want to give first dibs to potential new contributors.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions