Skip to content

Commit 69e7929

Browse files
committed
Used Java 8 for compilation/test
1 parent fe865b5 commit 69e7929

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

core/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ ext {
2323
}
2424

2525

26+
tasks.withType(ScalaCompile) {
27+
scalaCompileOptions.useAnt = false
28+
}
29+
30+
test {
31+
scanForTestClasses = false
32+
include '**/*Test.*'
33+
}
2634

2735
// In this section you declare where to find the dependencies of your project
2836
repositories {

demo/src/main/java/fj/demo/HList_foldRight.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ public static void main(final String[] args) {
3030
comp0 = Apply.comp();
3131
final HFoldr<Unit, F<Integer, Integer>, HList.HNil, F<Integer, Integer>>
3232
fold0 = HFoldr.hFoldr();
33-
final HFoldr<Unit, F<Integer, Integer>, HList.HCons<F<String, Integer>,
34-
HList.HCons<F<Integer, Integer>, HList.HCons<F<Integer, Integer>, HList.HNil>>>, F<String, Integer>>
35-
fold2 = HFoldr.hFoldr(comp1, HFoldr.hFoldr(comp0, HFoldr.hFoldr(comp0, fold0)));
33+
// final HFoldr<Unit, F<Integer, Integer>, HList.HCons<F<String, Integer>,
34+
// HList.HCons<F<Integer, Integer>, HList.HCons<F<Integer, Integer>, HList.HNil>>>, F<String, Integer>>
35+
// fold2 = HFoldr.hFoldr(comp1, HFoldr.hFoldr(comp0, HFoldr.hFoldr(comp0, fold0)));
3636
final F<Integer, Integer> id = identity();
3737

3838
// Compose the list and apply the resulting function to a value.
3939
// Unit is used because composition has only one possible implementation.
40-
out.println(fold2.foldRight(unit(), id, functions).f("abc")); // 7
40+
// out.println(fold2.foldRight(unit(), id, functions).f("abc")); // 7
4141
}
4242
}

0 commit comments

Comments
 (0)