Source code on Github
{-# OPTIONS --cubical-compatible #-}
module Class.Anyable.Instances where

open import Class.Prelude
open import Class.Anyable.Core

import Data.List.Relation.Unary.Any as L
import Data.Vec.Relation.Unary.Any as V
import Data.Maybe.Relation.Unary.Any as M

instance
  Anyable-List : Anyable {} List
  Anyable-List .Any = L.Any

  Anyable-Vec :  {n}  Anyable {} (flip Vec n)
  Anyable-Vec .Any P = V.Any P

  Anyable-Maybe : Anyable {} Maybe
  Anyable-Maybe .Any = M.Any

  Anyable-List⁺ : Anyable {} List⁺
  Anyable-List⁺ .Any P = Any P  L⁺.toList