[Haskell] Lecturer in Verification position at University of Sheffield: deadline 29 March 2021

2021-03-12 Thread Andrei Popescu
Greetings, The Department of Computer Science at University of Sheffield has an open position of Lecturer in Verification. Details can be found here: https://www.jobs.ac.uk/job/CEF438/lecturer-in-verification Female applicants are particularly encouraged. Best wishes, Andrei

Re: Pattern synonym 'Required' constraints === Datatype Contexts(?)

2021-03-12 Thread Richard Eisenberg
No hidden Bool here -- this is just a consequence of the way that view patterns work, where you have to match against the result of the function, in this case, (>0). See https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/exts/view_patterns.html Richard > On Mar 12, 2021, at 6:37

Re: Pattern synonym 'Required' constraints === Datatype Contexts(?)

2021-03-12 Thread Anthony Clayden
Thank you Richard, Lennart, *Gergő* >* pattern Positive :: (Ord a, Num a) => a* >* pattern Positive <- ((>0) -> True)* *Heh heh, there's another surprise/undocumented 'feature'.* *It's not necessary to give a signature for pattern `Positive`, GHC will infer that from the decl.* *I was

Re: Pattern synonym 'Required' constraints === Datatype Contexts(?)

2021-03-12 Thread ÉRDI Gergő
On Thu, 11 Mar 2021, Richard Eisenberg wrote: You're right that these features sit in a similar space. The difference is that, with a pattern synonym, the required context might be useful. This is because pattern synonyms can perform computation (via view patterns), and this computation might