Frege / frege

Frege is a Haskell for the JVM. It brings purely functional programing to the Java platform.
https://github.com/Frege/frege/wiki/_pages
Other
3.64k stars 145 forks source link

Cannot declare operators #15

Closed YoEight closed 12 years ago

YoEight commented 12 years ago

We can't declare those functions as 'operators':

>>>
<<<
***
&&&

Good part, I think I'm able to fix it :)

Ingo60 commented 12 years ago

Huh?

The following works for me:

infix 7 >>> a >>> b = a b

Did you enclose the new operator in the infix declaration in ``?

Ingo60 commented 12 years ago

The following works:

infix 7 `>>>`

(Hope I got the formatting right now.) I amended the Differences to Haskell accordingly.

YoEight commented 12 years ago

Well, I didn't have all my mind tonight. It's working properly. You can have a look at frege.control.Category and Arrow which are almost copy/paste version of Haskell version. Can't wait to have (.) :)

Ingo60 commented 12 years ago

Hi Yorick, that's why we all love the French, for their spontaneity, even if this sometimes results in utter chaos! :)

You can use the time trying to adjust the doc comments:

--- single line {-- multi line

another paragraph

code example

  • listitem
  • listitem
    1. item 1
    2. item 2 -}

Applies to the next (top level) definition. Doc comments for constructors or record fields come after the commented item. There is also some basic markup, the most important is 'name' where name is some type or function name. This will result in a clickable reference to where 'name' is described.

2012/10/11 Yorick notifications@github.com

Well, I didn't have all my mind tonight. It's working properly. You can have a look at frege.control.Category and Arrow which are almost copy/paste version of Haskell version. Can't wait to have (.) :)

— Reply to this email directly or view it on GitHubhttps://github.com/Frege/frege/issues/15#issuecomment-9322440.

YoEight commented 12 years ago

It's in my task list, i'll do it tonight