Skip to content
This repository was archived by the owner on Aug 17, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Out of the box, Ficus can read most types from config:
* Collections (`List[A]`, `Set[A]`, `Map[String, A]`, `Array[A]`, etc. All types with a CanBuildFrom instance are supported)
* `Config` and `ConfigValue` (Typesafe config/value)
* `FiniteDuration`
* `BigDecimal` and `BigInt`
* Most arbitrary classes (as well as traits that have an apply method for instantiation). See [Arbitrary type support](#arbitrary-type-support)

In this context, `A` means any type for which a `ValueReader` is already defined. For example, `Option[String]` is supported out of the box because `String` is. If you want to be able to extract an `Option[Foo[A]]` for some some type `Foo` that doesn't meet the supported type requirements (for example, this `Foo` has a type parameter), the option part is taken care of, but you will need to provide the implementation for extracting a `Foo[A]` from config. See [Custom extraction](#custom-extraction).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package net.ceedubs.ficus.readers

import com.typesafe.config.{ConfigException, Config}
import com.typesafe.config.Config

trait AnyValReaders {
implicit val booleanValueReader: ValueReader[Boolean] = new ValueReader[Boolean] {
Expand Down