简体   繁体   中英

What is Frege equivalent to Haskell's Fractional?

This definition is valid in ghci :

recip :: Fractional a ⇒ a → a
recip n = 1 / n

Trying it in frege-repl I got:

E <console>.fr:6: can't resolve `Fractional`, did you mean `Exceptional`
    perhaps?

"Hoogling" Fractional gives me nothing.

The Frege analog of Fractional appears to be Real , which offers two operations:

(/) ∷ Real r ⇒ r → r → r
fromDouble ∷ Real r ⇒ Double → r

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM