blob: b0907aa7a8f70b6c3f32fc11078e2364e694ae65 [file]
/-
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