From fddfd9f373151eaefe4193e4009efc04e87fac4c Mon Sep 17 00:00:00 2001 From: Matthew de Detrich Date: Sun, 4 Oct 2015 15:22:34 +1100 Subject: [PATCH 1/2] - Removed unneeded import --- src/main/scala/net/ceedubs/ficus/readers/AnyValReaders.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/net/ceedubs/ficus/readers/AnyValReaders.scala b/src/main/scala/net/ceedubs/ficus/readers/AnyValReaders.scala index 03e6d3b..304333e 100644 --- a/src/main/scala/net/ceedubs/ficus/readers/AnyValReaders.scala +++ b/src/main/scala/net/ceedubs/ficus/readers/AnyValReaders.scala @@ -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] { From 4c57a758201f7898d52d584885cac9891c59bffc Mon Sep 17 00:00:00 2001 From: Matthew de Detrich Date: Mon, 8 Feb 2016 13:36:01 +1100 Subject: [PATCH 2/2] BigDecimal and BigInt are also supported readers --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2c357f8..aa8b80e 100644 --- a/README.md +++ b/README.md @@ -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).