Skip to content

ifF not available on Option[Boolean] #4144

@atais

Description

@atais

maybe I am missing something, but it should be?

example code:

import cats.implicits._
val a = Some(true)
a.ifM(Some("a"), Some("b"))

works fine, but cannot resolve for:

import cats.implicits._
val a = Some(true)
a.ifF("a", "b")
value ifF is not a member of Option[Boolean]

scala 2.12
cats 2.7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions