Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
WIP: Clean-up domain.pure
Browse files Browse the repository at this point in the history
  • Loading branch information
ILIYANGERMANOV committed Apr 24, 2022
1 parent ea91845 commit d784c5d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.ivy.fp.action.FPAction
import com.ivy.fp.action.then
import com.ivy.wallet.domain.data.core.Account
import com.ivy.wallet.domain.pure.AccountValueFunctions
import com.ivy.wallet.domain.pure.calcValues
import com.ivy.wallet.domain.pure.core.calcValues
import com.ivy.wallet.domain.pure.data.ClosedTimeRange
import java.math.BigDecimal
import javax.inject.Inject
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ivy.wallet.domain.pure.core
package com.ivy.wallet.domain.pure

import arrow.core.NonEmptyList
import java.math.BigDecimal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package com.ivy.wallet.domain.pure
package com.ivy.wallet.domain.pure.core

import arrow.core.NonEmptyList
import com.ivy.fp.Pure
import com.ivy.wallet.domain.data.core.Transaction
import com.ivy.wallet.domain.pure.core.ValueFunction
import com.ivy.wallet.domain.pure.core.calculateValueFunctionsSum
import java.math.BigDecimal

@Pure
Expand Down
10 changes: 0 additions & 10 deletions app/src/main/java/com/ivy/wallet/domain/pure/core/Uncertain.kt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ package com.ivy.wallet.domain.pure.core

import arrow.core.NonEmptyList
import com.ivy.wallet.domain.data.core.Transaction
import com.ivy.wallet.domain.pure.mapIndexedNel
import com.ivy.wallet.domain.pure.mapIndexedNelSuspend
import com.ivy.wallet.domain.pure.nonEmptyListOfZeros
import java.math.BigDecimal

typealias ValueFunction<A> = (Transaction, A) -> BigDecimal
Expand Down

0 comments on commit d784c5d

Please sign in to comment.