Skip to content

Commit

Permalink
GITBOOK-70: No subject
Browse files Browse the repository at this point in the history
  • Loading branch information
dostrelith678 authored and gitbook-bot committed Mar 8, 2023
1 parent 74e0c1a commit c8b4d61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions type-classes/basic-classes/fractional-fractional-types.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -12,4 +12,3 @@ ghci> 5.0 / 2.0
ghci> recip 10 -- reciprocal is simply 1 / x
0.1
```

2 changes: 1 addition & 1 deletion type-classes/derived-instances.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit c8b4d61

Please sign in to comment.