diff --git a/type-classes/basic-classes/fractional-fractional-types.md b/type-classes/basic-classes/fractional-fractional-types.md index cb16d2a..1601ea5 100644 --- a/type-classes/basic-classes/fractional-fractional-types.md +++ b/type-classes/basic-classes/fractional-fractional-types.md @@ -1,6 +1,6 @@ # Fractional – Fractional Types -The `Integral` class extends the `Num` class and supports two additional methods for working with floating-point numbers, fractional division and reciprocation: +The `Fractional` class extends the `Num` class and supports two additional methods for working with floating-point numbers, fractional division and reciprocation: ```haskell (/) :: a -> a -> a @@ -12,4 +12,3 @@ ghci> 5.0 / 2.0 ghci> recip 10 -- reciprocal is simply 1 / x 0.1 ``` - diff --git a/type-classes/derived-instances.md b/type-classes/derived-instances.md index 3c996ee..66ab823 100644 --- a/type-classes/derived-instances.md +++ b/type-classes/derived-instances.md @@ -1,6 +1,6 @@ # Derived Instances -The deriving keyword can be used to make a new type into an instance of other built-in classes `Eq`, `Ord`, `Show`, `Read`, and `Enum` without the need for defining any of the methods. For example, the `Bool` type can be declared as: +The `deriving` keyword can be used to make a new type into an instance of other built-in classes `Eq`, `Ord`, `Show`, `Read`, and `Enum` without the need for defining any of the methods. For example, the `Bool` type can be declared as: ```haskell data Bool = False | True