Instance Type Details

I am new to Elm and as a former Haskell programmer, I wonder if there is a way, like in Haskell, to enter the / REPL interpreter:

:i number

So, I know that this does not work in Elm, but is there something that is equivalent to Haskell's:

:i Num

I want to get detailed information about the type class and all its instances.

In addition, the Haskell documentation contains information on the hierarchy of Haskell base class types:

https://www.haskell.org/onlinereport/basic.html

Is something like this available for Elm too?

Thanks in advance.

+4
source share
1 answer

Elm , , GHCi :i. Elm, , bools, .

Elm . . Haskell, =>, . : Haskell Elm. ( , Haskell 20+ .)

  • A number Int, Float. number. , , .
  • A comparable , , . <, >= ..
  • An appendable , (.. ) ( ). (++).
  • Eq. .

:

  • ( ) . 0.15.1 . ( 0,16.)
  • Signal.dropRepeats , .
  • Elm , comparable. .
  • , . , appendable1 .
  • , , ( , ). , , .

Haskell , PureScript.

+8

Source: https://habr.com/ru/post/1611376/


All Articles