Search in sources :

Example 1 with Higher

use of com.oath.cyclops.hkt.Higher in project cyclops by aol.

the class TaglessFinal3Test method setup.

@Before
public void setup() {
    nt = new NaturalTransformation<identity, io>() {

        @Override
        public <T> Higher<io, T> apply(Higher<identity, T> a) {
            return IO.sync(Identity.narrowK(a));
        }
    };
    acc1 = new Account(10000d, 10);
    acc2 = new Account(0d, 11);
    prog = new Program3<>(IOInstances.monad(), new AccountIO(), new LogID(), nt, acc2, acc1);
}
Also used : Account(cyclops.typeclasses.taglessfinal.Cases.Account) DataWitness.identity(com.oath.cyclops.hkt.DataWitness.identity) DataWitness.io(com.oath.cyclops.hkt.DataWitness.io) Higher(com.oath.cyclops.hkt.Higher) Before(org.junit.Before)

Aggregations

DataWitness.identity (com.oath.cyclops.hkt.DataWitness.identity)1 DataWitness.io (com.oath.cyclops.hkt.DataWitness.io)1 Higher (com.oath.cyclops.hkt.Higher)1 Account (cyclops.typeclasses.taglessfinal.Cases.Account)1 Before (org.junit.Before)1