
#12363: Type application for infix -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: Type: feature request | Status: new Priority: lowest | Milestone: Component: Compiler | Version: 8.0.1 (Parser) | Keywords: Resolution: | TypeApplications Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Iceland_jack): In my current code I need to give a type hint to an assignment {{{#!hs ptr := @elt value }}} Amazingly this can be emulated with some trickery {{{#!hs -- infixl 0 ◃, <|, ▹, |> -- (◃) = flip ($) -- (<|) = flip ($) -- (▹) = ($) -- (|>) = ($) ptr <|(:=) @elt|> value }}} but at that point this is clearer {{{#!hs assign @elt ptr value }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12363#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler