GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Implemented real world haskell IO (chapter 7) demonstration, implemen… · functionaljava/functionaljava@b0318d3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • core/src
    • main/java/fj
      • Show.java
      • Try.java
      • data
        • IOFunctions.java
        • IOW.java
        • LazyString.java
        • Stream.java
      • function
        • Strings.java
    • test/java/fj/data
      • LazyStringTest.java
      • StreamTest.java
  • demo/src/main/java/fj/demo
    • IODemo.java
    • Stream_Test.java
    • realworld
      • Chapter7.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎core/src/main/java/fj/Show.java‎

Copy file name to clipboardExpand all lines: core/src/main/java/fj/Show.java
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,14 @@ public static <A> Show<Class<A>> classShow() {
422422
* @return A show instance for the {@link P1 tuple-1} type.
423423
*/
424424
public static <A> Show<P1<A>> p1Show(final Show<A> sa) {
425+
return p1ShowLazy(sa);
426+
}
427+
428+
public static <A> Show<P1<A>> p1ShowLazy(final Show<A> sa) {
429+
return show(p -> Stream.fromString("(?)"));
430+
}
431+
432+
public static <A> Show<P1<A>> p1ShowEager(final Show<A> sa) {
425433
return show(p -> cons('(', p(sa.show(p._1()))).snoc(')'));
426434
}
427435

Collapse file

‎core/src/main/java/fj/Try.java‎

Copy file name to clipboardExpand all lines: core/src/main/java/fj/Try.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public static <A, B, C, D, E, F, G, H, I, Z extends Exception> F8<A, B, C, D, E,
160160
}
161161

162162
public static <A> IO<A> io(Try0<A, ? extends IOException> t) {
163-
return IOFunctions.io(t);
163+
return IOFunctions.fromTry(t);
164164
}
165165

166166
}

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.