Skip to content
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

Fix a small bug in the type pretty-printer #2322

Merged
merged 1 commit into from
Sep 22, 2016
Merged

Conversation

paf31
Copy link
Contributor

@paf31 paf31 commented Sep 22, 2016

Another little bug I noticed while working on functional dependencies.

Previously:

forall m.
  (MonadState { x :: Int m
              }
  ) => m Unit

Now:

forall m.     
  (MonadState  
     { x :: Int
     }         
     m        
  ) => m Unit 

@rvion
Copy link
Contributor

rvion commented Sep 22, 2016

are those one fixed too: ?

(let           ."b"
   o = { a: ...
       }
 in o
)

(from #2039)

> import GM.Scene
> :t instance_create
forall a m.
  (MonadState { elems :: Array                                 m) => { x :: Number
                           (Maybe                                    , y :: Number
                              { obj :: { x :: Number                 , vx :: Number
                                       , y :: Number                 , vy :: Number
                                       , vx :: Number                , mask :: { x :: Number
                                       , vy :: Number                          , y :: Number
                                       , mask :: { x :: Number                 , w :: Number
                                                 , y :: Number                 , h :: Number
                                                 , w :: Number                 }
                                                 , h :: Number       , obj :: a
                                                 }                   }
                                       , obj :: a                    -> m Unit
                                       }
                              , uid :: Int
                              }
                           )
              , next_uid :: Int
              }

from nwolverson/atom-ide-purescript#112

@paf31
Copy link
Contributor Author

paf31 commented Sep 22, 2016

Yes I think so.

@paf31 paf31 merged commit 354e793 into master Sep 22, 2016
@paf31 paf31 deleted the phil/constraint-layout branch September 22, 2016 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants