| /- | |
| Copyright (c) 2020 Microsoft Corporation. All rights reserved. | |
| Released under Apache 2.0 license as described in the file LICENSE. | |
| Authors: Leonardo de Moura, Mario Carneiro | |
| -/ | |
| module | |
| prelude | |
| public import Init.Coe | |
| public section | |
| /-! | |
| In this file, we define the coercion `α → Option α`. | |
| The use of this coercion is **banned** in `Init` and `Std` (but allowed everywhere else). For this | |
| reason, we define it in this file, which must not be imported anywhere in `Init` or `Std` (this | |
| is enforced by the test `importStructure.lean`). | |
| -/ | |
| instance optionCoe {α : Type u} : Coe α (Option α) where | |
| coe := some |