Created
March 14, 2019 20:38
-
-
Save qingwei91/e1344f35ecca15eacce82fdc79abd5f3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def queryString = HFix(QueryStringF: QueryF[HFix[Query,?], String]) | |
| def queryBool = HFix(QueryBoolF: Query[HFix[QueryF,?], Boolean]) | |
| def queryPath[A](p: String, next: HFix[QueryF, A]) = HFix(QueryPathF(p, HFix(next))) | |
| queryPath( | |
| "oh", | |
| queryPath( | |
| "my", | |
| queryString | |
| ) | |
| ) | |
| // HFix[QueryF, String] = HFix(QueryPathF("oh", HFix(QueryPathF("my", HFix(QueryStringF))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment