Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@gitlab:/usr/lib/pakcs/lib/.curry/pakcs# cat ../../Either.curry
- --- ----------------------------------------------------------------------------
- --- Library with some useful operations for the `Either` data type.
- ---
- --- @author Bjoern Peemoeller
- --- @version March 2015
- --- @category general
- --- ----------------------------------------------------------------------------
- {-# OPTIONS_CYMAKE -Wno-incomplete-patterns #-}
- module Either
- ( Either (..)
- , either
- , lefts
- , rights
- , isLeft
- , isRight
- , fromLeft
- , fromRight
- , partitionEithers
- ) where
- --- Extracts from a list of `Either` all the `Left` elements in order.
- lefts :: [Either a b] -> [a]
- lefts x = [a | Left a <- x]
- --- Extracts from a list of `Either` all the `Right` elements in order.
- rights :: [Either a b] -> [b]
- rights x = [a | Right a <- x]
- --- Return `True` if the given value is a `Left`-value, `False` otherwise.
- isLeft :: Either a b -> Bool
- isLeft (Left _) = True
- isLeft (Right _) = False
- --- Return `True` if the given value is a `Right`-value, `False` otherwise.
- isRight :: Either a b -> Bool
- isRight (Left _) = False
- isRight (Right _) = True
- --- Extract the value from a `Left` constructor.
- fromLeft :: Either a _ -> a
- fromLeft (Left x) = x
- --- Extract the value from a `Right` constructor.
- fromRight :: Either _ b -> b
- fromRight (Right x) = x
- --- Partitions a list of `Either` into two lists.
- --- All the `Left` elements are extracted, in order, to the first
- --- component of the output. Similarly the `Right` elements are extracted
- --- to the second component of the output.
- partitionEithers :: [Either a b] -> ([a],[b])
- partitionEithers = foldr (either left right) ([],[])
- where
- left a (l, r) = (a:l, r)
- right a (l, r) = (l, a:r)
- root@gitlab:/usr/lib/pakcs/lib/.curry/pakcs#
- root@gitlab:/usr/lib/pakcs/lib/.curry/pakcs#
- root@gitlab:/usr/lib/pakcs/lib/.curry/pakcs#
- root@gitlab:/usr/lib/pakcs/lib/.curry/pakcs#
- root@gitlab:/usr/lib/pakcs/lib/.curry/pakcs#
- root@gitlab:/usr/lib/pakcs/lib/.curry/pakcs# cat Either.pl
- %PAKCS2.0 swi7 VARIABLESHARING
- :-noSingletonWarnings.
- :-noRedefineWarnings.
- :-noDiscontiguousWarnings.
- :-importModule('Prelude').
- :-curryModule('Either').
- %%%%%%%%%%%% function types %%%%%%%%%%%%%%%%%%%
- :-multifile functiontype/6.
- :-dynamic functiontype/6.
- functiontype('Either.lefts',lefts,1,'Either.lefts',nofix,'FuncType'('TCons'([],['TCons'('Prelude.Either',[_2644850,_2644868])]),'TCons'([],[_2644850]))).
- functiontype('Either.lefts._\'23lambda3','Either.lefts._#lambda3',2,'Either.lefts._\'23lambda3',nofix,'FuncType'('TCons'('Prelude.Either',[_2678808,_2678826]),'FuncType'('TCons'([],[_2678808]),'TCons'([],[_2678808])))).
- functiontype('Either.rights',rights,1,'Either.rights',nofix,'FuncType'('TCons'([],['TCons'('Prelude.Either',[_2712688,_2712706])]),'TCons'([],[_2712706]))).
- functiontype('Either.rights._\'23lambda7','Either.rights._#lambda7',2,'Either.rights._\'23lambda7',nofix,'FuncType'('TCons'('Prelude.Either',[_2746652,_2746670]),'FuncType'('TCons'([],[_2746670]),'TCons'([],[_2746670])))).
- functiontype('Either.isLeft',isLeft,1,'Either.isLeft',nofix,'FuncType'('TCons'('Prelude.Either',[_2780520,_2780538]),'TCons'('Prelude.Bool',[]))).
- functiontype('Either.isRight',isRight,1,'Either.isRight',nofix,'FuncType'('TCons'('Prelude.Either',[_2814484,_2814502]),'TCons'('Prelude.Bool',[]))).
- functiontype('Either.fromLeft',fromLeft,1,'Either.fromLeft',nofix,'FuncType'('TCons'('Prelude.Either',[_2848360,_2848472]),_2848360)).
- functiontype('Either.fromRight',fromRight,1,'Either.fromRight',nofix,'FuncType'('TCons'('Prelude.Either',[_2882352,_2882258]),_2882258)).
- functiontype('Either.partitionEithers',partitionEithers,0,'Either.partitionEithers',nofix,'FuncType'('TCons'([],['TCons'('Prelude.Either',[_2916304,_2916322])]),'TCons'('Prelude.(,)',['TCons'([],[_2916304]),'TCons'([],[_2916322])]))).
- functiontype('Either.partitionEithers.left.24','Either.partitionEithers.left.24',2,'Either.partitionEithers.left.24',nofix,'FuncType'(_2950292,'FuncType'('TCons'('Prelude.(,)',['TCons'([],[_2950292]),_2950394]),'TCons'('Prelude.(,)',['TCons'([],[_2950292]),_2950394])))).
- functiontype('Either.partitionEithers.right.24','Either.partitionEithers.right.24',2,'Either.partitionEithers.right.24',nofix,'FuncType'(_2984316,'FuncType'('TCons'('Prelude.(,)',[_2984400,'TCons'([],[_2984316])]),'TCons'('Prelude.(,)',[_2984400,'TCons'([],[_2984316])])))).
- %%%%%%%%%%%% constructor types %%%%%%%%%%%%%%%%%%%
- :-multifile constructortype/7.
- :-dynamic constructortype/7.
- %%%%%%%%%%%% function definitions %%%%%%%%%%%%%%%%%%%
- 'Either.lefts'(_3033212,_3033214,_3033216,_3033218):-freeze(_3033216,'blocked_Either.lefts'(_3033212,_3033214,_3033216,_3033218)).
- 'blocked_Either.lefts'(_3033288,_3033542,_3033548,_3033554):-hnf('Prelude.foldr'(partcall(2,'Either.lefts._\'23lambda3',[]),[],_3033288),_3033542,_3033548,_3033554).
- 'Either.lefts._\'23lambda3'(_3035254,_3035256,_3035258,_3035260,_3035262):-freeze(_3035260,'blocked_Either.lefts._\'23lambda3'(_3035254,_3035256,_3035258,_3035260,_3035262)).
- 'blocked_Either.lefts._\'23lambda3'(_3035340,_3035358,_3035948,_3035954,_3035960):-hnf(_3035340,_3037208,_3035954,_3037184),'blocked_Either.lefts._\'23lambda3_1'(_3037208,_3035358,_3035948,_3037184,_3035960).
- 'blocked_Either.lefts._\'23lambda3_1'(_3037560,_3037562,_3037564,_3037566,_3037568):-freeze(_3037566,freeze(_3037560,'blocked_blocked_Either.lefts._\'23lambda3_1'(_3037560,_3037562,_3037564,_3037566,_3037568))).
- 'blocked_blocked_Either.lefts._\'23lambda3_1'('Prelude.Left'(_3035466),_3035358,[_3035466|_3035358],_3037918,_3037918).
- 'blocked_blocked_Either.lefts._\'23lambda3_1'('Prelude.Right'(_3035714),_3035358,_3038846,_3038852,_3038858):-!,hnf(_3035358,_3038846,_3038852,_3038858).
- 'blocked_blocked_Either.lefts._\'23lambda3_1'('FAIL'(_3039346),_3035358,'FAIL'(_3039346),_3039360,_3039360).
- 'Either.rights'(_3039990,_3039992,_3039994,_3039996):-freeze(_3039994,'blocked_Either.rights'(_3039990,_3039992,_3039994,_3039996)).
- 'blocked_Either.rights'(_3040066,_3040320,_3040326,_3040332):-hnf('Prelude.foldr'(partcall(2,'Either.rights._\'23lambda7',[]),[],_3040066),_3040320,_3040326,_3040332).
- 'Either.rights._\'23lambda7'(_3042080,_3042082,_3042084,_3042086,_3042088):-freeze(_3042086,'blocked_Either.rights._\'23lambda7'(_3042080,_3042082,_3042084,_3042086,_3042088)).
- 'blocked_Either.rights._\'23lambda7'(_3042166,_3042184,_3042780,_3042786,_3042792):-hnf(_3042166,_3044076,_3042786,_3044052),'blocked_Either.rights._\'23lambda7_1'(_3044076,_3042184,_3042780,_3044052,_3042792).
- 'blocked_Either.rights._\'23lambda7_1'(_3044434,_3044436,_3044438,_3044440,_3044442):-freeze(_3044440,freeze(_3044434,'blocked_blocked_Either.rights._\'23lambda7_1'(_3044434,_3044436,_3044438,_3044440,_3044442))).
- 'blocked_blocked_Either.rights._\'23lambda7_1'('Prelude.Right'(_3042292),_3042184,[_3042292|_3042184],_3044804,_3044804).
- 'blocked_blocked_Either.rights._\'23lambda7_1'('Prelude.Left'(_3042540),_3042184,_3045726,_3045732,_3045738):-!,hnf(_3042184,_3045726,_3045732,_3045738).
- 'blocked_blocked_Either.rights._\'23lambda7_1'('FAIL'(_3046232),_3042184,'FAIL'(_3046232),_3046246,_3046246).
- 'Either.isLeft'(_3046876,_3046878,_3046880,_3046882):-freeze(_3046880,'blocked_Either.isLeft'(_3046876,_3046878,_3046880,_3046882)).
- 'blocked_Either.isLeft'(_3046952,_3047358,_3047364,_3047370):-hnf(_3046952,_3048202,_3047364,_3048184),'blocked_Either.isLeft_1'(_3048202,_3047358,_3048184,_3047370).
- 'blocked_Either.isLeft_1'(_3048480,_3048482,_3048484,_3048486):-freeze(_3048484,'blocked_blocked_Either.isLeft_1'(_3048480,_3048482,_3048484,_3048486)).
- 'blocked_blocked_Either.isLeft_1'('Prelude.Left'(_3047060),'Prelude.True',_3048822,_3048822).
- 'blocked_blocked_Either.isLeft_1'('Prelude.Right'(_3047176),'Prelude.False',_3049506,_3049506):-!.
- 'blocked_blocked_Either.isLeft_1'('FAIL'(_3049928),'FAIL'(_3049928),_3049942,_3049942):-nonvar(_3049928).
- 'Either.isRight'(_3050604,_3050606,_3050608,_3050610):-freeze(_3050608,'blocked_Either.isRight'(_3050604,_3050606,_3050608,_3050610)).
- 'blocked_Either.isRight'(_3050680,_3051092,_3051098,_3051104):-hnf(_3050680,_3051972,_3051098,_3051954),'blocked_Either.isRight_1'(_3051972,_3051092,_3051954,_3051104).
- 'blocked_Either.isRight_1'(_3052256,_3052258,_3052260,_3052262):-freeze(_3052260,'blocked_blocked_Either.isRight_1'(_3052256,_3052258,_3052260,_3052262)).
- 'blocked_blocked_Either.isRight_1'('Prelude.Left'(_3050788),'Prelude.False',_3052598,_3052598).
- 'blocked_blocked_Either.isRight_1'('Prelude.Right'(_3050904),'Prelude.True',_3053294,_3053294):-!.
- 'blocked_blocked_Either.isRight_1'('FAIL'(_3053716),'FAIL'(_3053716),_3053730,_3053730):-nonvar(_3053716).
- 'Either.fromLeft'(_3054428,_3054430,_3054432,_3054434):-freeze(_3054432,'blocked_Either.fromLeft'(_3054428,_3054430,_3054432,_3054434)).
- 'blocked_Either.fromLeft'(_3054504,_3055294,_3055300,_3055306):-hnf(_3054504,_3056210,_3055300,_3056192),'blocked_Either.fromLeft_1'(_3056210,_3055294,_3056192,_3055306).
- 'blocked_Either.fromLeft_1'(_3056500,_3056502,_3056504,_3056506):-freeze(_3056504,'blocked_blocked_Either.fromLeft_1'(_3056500,_3056502,_3056504,_3056506)).
- 'blocked_blocked_Either.fromLeft_1'('Prelude.Left'(_3054612),_3056926,_3056932,_3056938):-!,hnf(_3054612,_3056926,_3056932,_3056938).
- 'blocked_blocked_Either.fromLeft_1'('Prelude.Right'(_3054714),_3057576,_3057582,_3057588):-!,hnf('Prelude.failure'('Either.fromLeft',['Prelude.Right'(_3054714)]),_3057576,_3057582,_3057588).
- 'blocked_blocked_Either.fromLeft_1'('FAIL'(_3058686),'FAIL'(_3058686),_3058700,_3058700).
- 'Either.fromRight'(_3059430,_3059432,_3059434,_3059436):-freeze(_3059434,'blocked_Either.fromRight'(_3059430,_3059432,_3059434,_3059436)).
- 'blocked_Either.fromRight'(_3059506,_3060302,_3060308,_3060314):-hnf(_3059506,_3061254,_3060308,_3061236),'blocked_Either.fromRight_1'(_3061254,_3060302,_3061236,_3060314).
- 'blocked_Either.fromRight_1'(_3061550,_3061552,_3061554,_3061556):-freeze(_3061554,'blocked_blocked_Either.fromRight_1'(_3061550,_3061552,_3061554,_3061556)).
- 'blocked_blocked_Either.fromRight_1'('Prelude.Right'(_3059614),_3061988,_3061994,_3062000):-!,hnf(_3059614,_3061988,_3061994,_3062000).
- 'blocked_blocked_Either.fromRight_1'('Prelude.Left'(_3059716),_3062632,_3062638,_3062644):-!,hnf('Prelude.failure'('Either.fromRight',['Prelude.Left'(_3059716)]),_3062632,_3062638,_3062644).
- 'blocked_blocked_Either.fromRight_1'('FAIL'(_3063748),'FAIL'(_3063748),_3063762,_3063762).
- 'Either.partitionEithers'(_3064744,_3064746,_3064748):-freeze(_3064746,'blocked_Either.partitionEithers'(_3064744,_3064746,_3064748)).
- 'blocked_Either.partitionEithers'(_3065300,_3065306,_3065312):-hnf(partcall(1,'Prelude.foldr',['Prelude.(,)'([],[]),partcall(1,'Prelude.either',[partcall(2,'Either.partitionEithers.right.24',[]),partcall(2,'Either.partitionEithers.left.24',[])])]),_3065300,_3065306,_3065312).
- 'Either.partitionEithers.left.24'(_3067992,_3067994,_3067996,_3067998,_3068000):-freeze(_3067998,'blocked_Either.partitionEithers.left.24'(_3067992,_3067994,_3067996,_3067998,_3068000)).
- 'blocked_Either.partitionEithers.left.24'(_3068078,_3068096,_3068802,_3068808,_3068814):-hnf(_3068096,_3070314,_3068808,_3070290),'blocked_Either.partitionEithers.left.24_2'(_3070314,_3068078,_3068802,_3070290,_3068814).
- 'blocked_Either.partitionEithers.left.24_2'(_3070702,_3070704,_3070706,_3070708,_3070710):-freeze(_3070708,'blocked_blocked_Either.partitionEithers.left.24_2'(_3070702,_3070704,_3070706,_3070708,_3070710)).
- 'blocked_blocked_Either.partitionEithers.left.24_2'('Prelude.(,)'(_3068204,_3068222),_3068078,'Prelude.(,)'([_3068078|_3068204],_3068222),_3071038,_3071038):-!.
- 'blocked_blocked_Either.partitionEithers.left.24_2'('FAIL'(_3072068),_3068078,'FAIL'(_3072068),_3072082,_3072082):-nonvar(_3072068).
- 'Either.partitionEithers.right.24'(_3073400,_3073402,_3073404,_3073406,_3073408):-freeze(_3073406,'blocked_Either.partitionEithers.right.24'(_3073400,_3073402,_3073404,_3073406,_3073408)).
- 'blocked_Either.partitionEithers.right.24'(_3073486,_3073504,_3074216,_3074222,_3074228):-hnf(_3073504,_3075764,_3074222,_3075740),'blocked_Either.partitionEithers.right.24_2'(_3075764,_3073486,_3074216,_3075740,_3074228).
- 'blocked_Either.partitionEithers.right.24_2'(_3076158,_3076160,_3076162,_3076164,_3076166):-freeze(_3076164,'blocked_blocked_Either.partitionEithers.right.24_2'(_3076158,_3076160,_3076162,_3076164,_3076166)).
- 'blocked_blocked_Either.partitionEithers.right.24_2'('Prelude.(,)'(_3073612,_3073630),_3073486,'Prelude.(,)'(_3073612,[_3073486|_3073630]),_3076494,_3076494):-!.
- 'blocked_blocked_Either.partitionEithers.right.24_2'('FAIL'(_3077530),_3073486,'FAIL'(_3077530),_3077544,_3077544):-nonvar(_3077530).
- :-costCenters(['']).
- %%%%% Number of shared variables: 0
- root@gitlab:/usr/lib/pakcs/lib/.curry/pakcs#
- Some other random sruff from Prelude.pl
- :-block 'Prelude..'(?,?,?,-,?).
- 'Prelude..'(A,B,C,D,E):-hnf(partcall(1,'Prelude..._\'23lambda279',[B,A]),C,D,E).
- :-block 'Prelude..._\'23lambda279'(?,?,?,?,-,?).
- 'Prelude..._\'23lambda279'(A,B,C,D,E,F):-hnf('Prelude.apply'(A,'Prelude.apply'(B,C)),D,E,F).
- :-block 'Prelude.id'(?,?,-,?).
- 'Prelude.id'(A,B,C,D):-hnf(A,B,C,D).
- :-block 'Prelude.const'(?,?,?,-,?).
- 'Prelude.const'(A,B,C,D,E):-hnf(A,C,D,E).
- :-block 'Prelude.curry'(?,?,?,?,-,?).
- 'Prelude.curry'(A,B,C,D,E,F):-hnf('Prelude.apply'(A,'Prelude.(,)'(B,C)),D,E,F).
- :-block 'Prelude.uncurry'(?,?,?,-,?).
- 'Prelude.uncurry'(A,B,C,D,E):-hnf(B,F,D,G),'Prelude.uncurry_2'(F,A,C,G,E).
- :-block 'Prelude.uncurry_2'(?,?,?,-,?).
- 'Prelude.uncurry_2'('Prelude.(,)'(A,B),C,D,E,F):-!,hnf('Prelude.apply'('Prelude.apply'(C,A),B),D,E,F).
- 'Prelude.uncurry_2'('FAIL'(A),B,'FAIL'(A),C,C):-nonvar(A).
- :-block 'Prelude.flip'(?,?,?,?,-,?).
- 'Prelude.flip'(A,B,C,D,E,F):-hnf('Prelude.apply'('Prelude.apply'(A,C),B),D,E,F).
- :-block 'Prelude.until'(?,?,?,?,-,?).
- 'Prelude.until'(A,B,C,D,E,F):-makeShare(A,G),makeShare(C,H),hnf('Prelude.apply'(G,H),I,E,J),'Prelude.until_ComplexCase'(I,G,B,H,D,J,F).
- :-block 'Prelude.until_ComplexCase'(-,?,?,?,?,?,?),'Prelude.until_ComplexCase'(?,?,?,?,?,-,?).
- 'Prelude.until_ComplexCase'('Prelude.True',A,B,C,D,E,F):-hnf(C,D,E,F).
- 'Prelude.until_ComplexCase'('Prelude.False',A,B,C,D,E,F):-!,makeShare(B,G),hnf('Prelude.until'(A,G,'Prelude.apply'(G,C)),D,E,F).
- 'Prelude.until_ComplexCase'('FAIL'(A),B,C,D,'FAIL'(A),E,E).
- :-block 'Prelude.ensureSpine'(?,?,-,?).
- 'Prelude.ensureSpine'(A,B,C,D):-hnf('Prelude.ensureSpine.ensureList.20'('Prelude.ensureNotFree'(A)),B,C,D).
- :-block 'Prelude.ensureSpine.ensureList.20'(?,?,-,?).
- 'Prelude.ensureSpine.ensureList.20'(A,B,C,D):-hnf(A,E,C,F),'Prelude.ensureSpine.ensureList.20_1'(E,B,F,D).
- :-block 'Prelude.ensureSpine.ensureList.20_1'(?,?,-,?).
- 'Prelude.ensureSpine.ensureList.20_1'([],[],A,A).
- 'Prelude.ensureSpine.ensureList.20_1'([A|B],[A|'Prelude.ensureSpine'(B)],C,C):-!.
- 'Prelude.ensureSpine.ensureList.20_1'('FAIL'(A),'FAIL'(A),B,B):-nonvar(A).
- :-block 'Prelude.$'(?,?,?,-,?).
- 'Prelude.$'(A,B,C,D,E):-hnf('Prelude.apply'(A,B),C,D,E).
- :-block 'Prelude.error'(?,?,-,?).
- 'Prelude.error'(A,B,C,D):-hnf('Prelude.$##'(partcall(1,'Prelude.prim_error',[]),A),B,C,D).
- :-block 'Prelude.prim_error'(?,?,-,?).
- 'Prelude.prim_error'(A,B,C,D):-derefAll(A,E),prim_error(E,B),C=D.
- :-block 'Prelude.&&'(?,?,?,-,?).
- 'Prelude.&&'(A,B,C,D,E):-hnf(A,F,D,G),'Prelude.&&_1'(F,B,C,G,E).
- :-block 'Prelude.&&_1'(?,?,?,-,?).
- 'Prelude.&&_1'('Prelude.True',A,B,C,D):-hnf(A,B,C,D).
- 'Prelude.&&_1'('Prelude.False',A,'Prelude.False',B,B):-!.
- 'Prelude.&&_1'('FAIL'(A),B,'FAIL'(A),C,C):-nonvar(A).
- :-block 'Prelude.||'(?,?,?,-,?).
- 'Prelude.||'(A,B,C,D,E):-hnf(A,F,D,G),'Prelude.||_1'(F,B,C,G,E).
- :-block 'Prelude.||_1'(?,?,?,-,?).
- 'Prelude.||_1'('Prelude.True',A,'Prelude.True',B,B).
- 'Prelude.||_1'('Prelude.False',A,B,C,D):-!,hnf(A,B,C,D).
- 'Prelude.||_1'('FAIL'(A),B,'FAIL'(A),C,C):-nonvar(A).
- :-block 'Prelude.not'(?,?,-,?).
- 'Prelude.not'(A,B,C,D):-hnf(A,E,C,F),'Prelude.not_1'(E,B,F,D).
- :-block 'Prelude.not_1'(?,?,-,?).
- 'Prelude.not_1'('Prelude.True','Prelude.False',A,A).
- 'Prelude.not_1'('Prelude.False','Prelude.True',A,A):-!.
- 'Prelude.not_1'('FAIL'(A),'FAIL'(A),B,B):-nonvar(A).
- :-block 'Prelude.otherwise'(?,-,?).
- 'Prelude.otherwise'('Prelude.True',A,A).
- :-block 'Prelude.if_then_else'(?,?,?,?,-,?).
- 'Prelude.if_then_else'(A,B,C,D,E,F):-hnf(A,G,E,H),'Prelude.if_then_else_1'(G,B,C,D,H,F).
- :-block 'Prelude.if_then_else_1'(-,?,?,?,?,?),'Prelude.if_then_else_1'(?,?,?,?,-,?).
- 'Prelude.if_then_else_1'('Prelude.True',A,B,C,D,E):-hnf(A,C,D,E).
- 'Prelude.if_then_else_1'('Prelude.False',A,B,C,D,E):-!,hnf(B,C,D,E).
- 'Prelude.if_then_else_1'('FAIL'(A),B,C,'FAIL'(A),D,D).
- :-block 'Prelude.solve'(?,?,-,?).
- 'Prelude.solve'(A,B,C,D):-hnf(A,E,C,F),'Prelude.solve_1'(E,B,F,D).
- :-block 'Prelude.solve_1'(?,?,-,?).
- 'Prelude.solve_1'('Prelude.True','Prelude.True',A,A):-!.
- 'Prelude.solve_1'('Prelude.False',A,B,C):-!,hnf('Prelude.failure'('Prelude.solve',['Prelude.False']),A,B,C).
- 'Prelude.solve_1'('FAIL'(A),'FAIL'(A),B,B).
- :-block 'Prelude.&>'(?,?,?,-,?).
- 'Prelude.&>'(A,B,C,D,E):-hnf(A,F,D,G),'Prelude.&>_1'(F,B,C,G,E).
- :-block 'Prelude.&>_1'(?,?,?,-,?).
- 'Prelude.&>_1'('Prelude.True',A,B,C,D):-!,hnf(A,B,C,D).
- 'Prelude.&>_1'('Prelude.False',A,B,C,D):-!,hnf('Prelude.failure'('Prelude.&>',['Prelude.False']),B,C,D).
- 'Prelude.&>_1'('FAIL'(A),B,'FAIL'(A),C,C).
- :-block 'Prelude.eqChar'(?,?,?,-,?).
- 'Prelude.eqChar'(A,B,C,D,E):-hnf('Prelude.$#'('Prelude.$#'(partcall(2,'Prelude.prim_eqChar',[]),B),A),C,D,E).
- :-block 'Prelude.prim_eqChar'(?,?,?,-,?).
- 'Prelude.prim_eqChar'(A,B,C,D,E):-derefRoot(A,F),derefRoot(B,G),prim_eqBasic(F,G,C),D=E.
- :-block 'Prelude.eqInt'(?,?,?,-,?).
- 'Prelude.eqInt'(A,B,C,D,E):-hnf('Prelude.$#'('Prelude.$#'(partcall(2,'Prelude.prim_eqInt',[]),B),A),C,D,E).
- :-block 'Prelude.prim_eqInt'(?,?,?,-,?).
- 'Prelude.prim_eqInt'(A,B,C,D,E):-derefRoot(A,F),derefRoot(B,G),prim_eqBasic(F,G,C),D=E.
- :-block 'Prelude.eqFloat'(?,?,?,-,?).
- 'Prelude.eqFloat'(A,B,C,D,E):-hnf('Prelude.$#'('Prelude.$#'(partcall(2,'Prelude.prim_eqFloat',[]),B),A),C,D,E).
- :-block 'Prelude.prim_eqFloat'(?,?,?,-,?).
- 'Prelude.prim_eqFloat'(A,B,C,D,E):-derefRoot(A,F),derefRoot(B,G),prim_eqBasic(F,G,C),D=E.
- :-block 'Prelude.ltEqChar'(?,?,?,-,?).
- 'Prelude.ltEqChar'(A,B,C,D,E):-hnf('Prelude.$#'('Prelude.$#'(partcall(2,'Prelude.prim_ltEqChar',[]),B),A),C,D,E).
- :-block 'Prelude.prim_ltEqChar'(?,?,?,-,?).
- 'Prelude.prim_ltEqChar'(A,B,C,D,E):-derefRoot(A,F),derefRoot(B,G),prim_leqChar(F,G,C),D=E.
- :-block 'Prelude.ltEqInt'(?,?,?,-,?).
- 'Prelude.ltEqInt'(A,B,C,D,E):-hnf('Prelude.$#'('Prelude.$#'(partcall(2,'Prelude.prim_ltEqInt',[]),B),A),C,D,E).
- :-block 'Prelude.prim_ltEqInt'(?,?,?,-,?).
- 'Prelude.prim_ltEqInt'(A,B,C,D,E):-derefRoot(A,F),derefRoot(B,G),prim_leqNumber(F,G,C),D=E.
- :-block 'Prelude.ltEqFloat'(?,?,?,-,?).
- 'Prelude.ltEqFloat'(A,B,C,D,E):-hnf('Prelude.$#'('Prelude.$#'(partcall(2,'Prelude.prim_ltEqFloat',[]),B),A),C,D,E).
- :-block 'Prelude.prim_ltEqFloat'(?,?,?,-,?).
- 'Prelude.prim_ltEqFloat'(A,B,C,D,E):-derefRoot(A,F),derefRoot(B,G),prim_leqNumber(F,G,C),D=E.
- :-block 'Prelude.fst'(?,?,-,?).
- 'Prelude.fst'(A,B,C,D):-hnf(A,E,C,F),'Prelude.fst_1'(E,B,F,D).
- :-block 'Prelude.fst_1'(?,?,-,?).
- 'Prelude.fst_1'('Prelude.(,)'(A,B),C,D,E):-!,hnf(A,C,D,E).
- 'Prelude.fst_1'('FAIL'(A),'FAIL'(A),B,B):-nonvar(A).
- :-block 'Prelude.snd'(?,?,-,?).
- 'Prelude.snd'(A,B,C,D):-hnf(A,E,C,F),'Prelude.snd_1'(E,B,F,D).
- :-block 'Prelude.snd_1'(?,?,-,?).
- 'Prelude.snd_1'('Prelude.(,)'(A,B),C,D,E):-!,hnf(B,C,D,E).
- 'Prelude.snd_1'('FAIL'(A),'FAIL'(A),B,B):-nonvar(A).
- :-block 'Prelude.head'(?,?,-,?).
- 'Prelude.head'(A,B,C,D):-hnf(A,E,C,F),'Prelude.head_1'(E,B,F,D).
- :-block 'Prelude.head_1'(?,?,-,?).
- 'Prelude.head_1'([A|B],C,D,E):-!,hnf(A,C,D,E).
- 'Prelude.head_1'([],A,B,C):-!,hnf('Prelude.failure'('Prelude.head',[[]]),A,B,C).
- 'Prelude.head_1'('FAIL'(A),'FAIL'(A),B,B).
- :-block 'Prelude.tail'(?,?,-,?).
- 'Prelude.tail'(A,B,C,D):-hnf(A,E,C,F),'Prelude.tail_1'(E,B,F,D).
- :-block 'Prelude.tail_1'(?,?,-,?).
- 'Prelude.tail_1'([A|B],C,D,E):-!,hnf(B,C,D,E).
- 'Prelude.tail_1'([],A,B,C):-!,hnf('Prelude.failure'('Prelude.tail',[[]]),A,B,C).
- 'Prelude.tail_1'('FAIL'(A),'FAIL'(A),B,B).
- :-block 'Prelude.null'(?,?,-,?).
- 'Prelude.null'(A,B,C,D):-hnf(A,E,C,F),'Prelude.null_1'(E,B,F,D).
- :-block 'Prelude.null_1'(?,?,-,?).
- 'Prelude.null_1'([],'Prelude.True',A,A).
- 'Prelude.null_1'([A|B],'Prelude.False',C,C):-!.
- 'Prelude.null_1'('FAIL'(A),'FAIL'(A),B,B):-nonvar(A).
- :-block 'Prelude.++'(?,?,?,-,?).
- 'Prelude.++'(A,B,C,D,E):-hnf(A,F,D,G),'Prelude.++_1'(F,B,C,G,E).
- :-block 'Prelude.++_1'(?,?,?,-,?).
- 'Prelude.++_1'([],A,B,C,D):-hnf(A,B,C,D).
- 'Prelude.++_1'([A|B],C,[A|'Prelude.++'(B,C)],D,D):-!.
- 'Prelude.++_1'('FAIL'(A),B,'FAIL'(A),C,C):-nonvar(A).
- :-block 'Prelude.length'(?,?,-,?).
- 'Prelude.length'(A,B,C,D):-hnf('Prelude.length.len.92'('Prelude._inst\'23Prelude.Num\'23Prelude.Int',A,0),B,C,D).
- :-block 'Prelude.length.len.92'(?,?,?,?,-,?).
- 'Prelude.length.len.92'(A,B,C,D,E,F):-hnf(B,G,E,H),'Prelude.length.len.92_2'(G,A,C,D,H,F).
- :-block 'Prelude.length.len.92_2'(?,?,?,?,-,?).
- 'Prelude.length.len.92_2'([],A,B,C,D,E):-hnf(B,C,D,E).
- 'Prelude.length.len.92_2'([A|B],C,D,E,F,G):-!,makeShare(H,I),makeShare(C,J),hnf('Prelude.cond'('Prelude.letrec'(I,'Prelude.apply'('Prelude.apply'('Prelude.+'(J),D),'Prelude.apply'('Prelude.fromInt'(J),1))),'Prelude.$!!'(partcall(1,'Prelude.length.len.92',[B,J]),I)),E,F,G).
- 'Prelude.length.len.92_2'('FAIL'(A),B,C,'FAIL'(A),D,D):-nonvar(A).
- :-block 'Prelude.!!'(?,?,?,-,?).
- 'Prelude.!!'(A,B,C,D,E):-hnf(A,F,D,G),'Prelude.!!_1'(F,B,C,G,E).
- :-block 'Prelude.!!_1'(?,?,?,-,?).
- 'Prelude.!!_1'([A|B],C,D,E,F):-!,makeShare(C,G),hnf('Prelude._impl\'23\'3D\'3D\'23Prelude.Eq\'23Prelude.Int'(G,0),H,E,I),'Prelude.!!_1_._ComplexCase'(H,A,B,G,D,I,F).
- :-block 'Prelude.!!_1_._ComplexCase'(-,?,?,?,?,?,?),'Prelude.!!_1_._ComplexCase'(?,?,?,?,?,-,?).
- 'Prelude.!!_1_._ComplexCase'('Prelude.True',A,B,C,D,E,F):-hnf(A,D,E,F).
- 'Prelude.!!_1_._ComplexCase'('Prelude.False',A,B,C,D,E,F):-!,makeShare(C,G),hnf('Prelude.apply'('Prelude.apply'('Prelude._impl\'23\'3E\'23Prelude.Ord\'23Prelude.Int',G),0),H,E,I),'Prelude.!!_1_._ComplexCase_Prelude.False_ComplexCase'(H,A,B,G,D,I,F).
- :-block 'Prelude.!!_1_._ComplexCase_Prelude.False_ComplexCase'(-,?,?,?,?,?,?),'Prelude.!!_1_._ComplexCase_Prelude.False_ComplexCase'(?,?,?,?,?,-,?).
- 'Prelude.!!_1_._ComplexCase_Prelude.False_ComplexCase'('Prelude.True',A,B,C,D,E,F):-hnf('Prelude.!!'(B,'Prelude._impl\'23\'2D\'23Prelude.Num\'23Prelude.Int'(C,1)),D,E,F).
- 'Prelude.!!_1_._ComplexCase_Prelude.False_ComplexCase'('Prelude.False',A,B,C,D,E,F):-!,hnf('Prelude.failure'('Prelude.!!',['Prelude.False']),D,E,F).
- 'Prelude.!!_1_._ComplexCase_Prelude.False_ComplexCase'('FAIL'(A),B,C,D,'FAIL'(A),E,E).
- 'Prelude.!!_1_._ComplexCase'('FAIL'(A),B,C,D,'FAIL'(A),E,E).
- 'Prelude.!!_1'([],A,B,C,D):-!,hnf('Prelude.failure'('Prelude.!!',[[]]),B,C,D).
- 'Prelude.!!_1'('FAIL'(A),B,'FAIL'(A),C,C).
- :-block 'Prelude.map'(?,?,?,-,?).
- 'Prelude.map'(A,B,C,D,E):-hnf(B,F,D,G),'Prelude.map_2'(F,A,C,G,E).
- :-block 'Prelude.map_2'(?,?,?,-,?).
- 'Prelude.map_2'([],A,[],B,B).
- 'Prelude.map_2'([A|B],C,['Prelude.apply'(D,A)|'Prelude.map'(D,B)],E,F):-!,makeShare(C,D),E=F.
- 'Prelude.map_2'('FAIL'(A),B,'FAIL'(A),C,C):-nonvar(A).
- :-block 'Prelude.foldl'(?,?,?,?,-,?).
- 'Prelude.foldl'(A,B,C,D,E,F):-hnf(C,G,E,H),'Prelude.foldl_3'(G,A,B,D,H,F).
- :-block 'Prelude.foldl_3'(?,?,?,?,-,?).
- 'Prelude.foldl_3'([],A,B,C,D,E):-hnf(B,C,D,E).
- 'Prelude.foldl_3'([A|B],C,D,E,F,G):-!,makeShare(C,H),hnf('Prelude.foldl'(H,'Prelude.apply'('Prelude.apply'(H,D),A),B),E,F,G).
- 'Prelude.foldl_3'('FAIL'(A),B,C,'FAIL'(A),D,D):-nonvar(A).
- :-block 'Prelude.foldl1'(?,?,?,-,?).
- 'Prelude.foldl1'(A,B,C,D,E):-hnf(B,F,D,G),'Prelude.foldl1_2'(F,A,C,G,E).
- :-block 'Prelude.foldl1_2'(?,?,?,-,?).
- 'Prelude.foldl1_2'([A|B],C,D,E,F):-!,hnf('Prelude.foldl'(C,A,B),D,E,F).
- 'Prelude.foldl1_2'([],A,B,C,D):-!,hnf('Prelude.failure'('Prelude.foldl1',[[]]),B,C,D).
- 'Prelude.foldl1_2'('FAIL'(A),B,'FAIL'(A),C,C).
- :-block 'Prelude.foldr'(?,?,?,?,-,?).
- 'Prelude.foldr'(A,B,C,D,E,F):-hnf(C,G,E,H),'Prelude.foldr_3'(G,A,B,D,H,F).
- :-block 'Prelude.foldr_3'(?,?,?,?,-,?).
- 'Prelude.foldr_3'([],A,B,C,D,E):-hnf(B,C,D,E).
- 'Prelude.foldr_3'([A|B],C,D,E,F,G):-!,makeShare(C,H),hnf('Prelude.apply'('Prelude.apply'(H,A),'Prelude.foldr'(H,D,B)),E,F,G).
- 'Prelude.foldr_3'('FAIL'(A),B,C,'FAIL'(A),D,D):-nonvar(A).
- :-block 'Prelude.foldr1'(?,?,?,-,?).
- 'Prelude.foldr1'(A,B,C,D,E):-hnf(B,F,D,G),'Prelude.foldr1_2'(F,A,C,G,E).
- :-block 'Prelude.foldr1_2'(?,?,?,-,?).
- 'Prelude.foldr1_2'([A|B],C,D,E,F):-!,makeShare(B,G),hnf(G,H,E,I),'Prelude.foldr1_2_._2'(H,A,H,C,D,I,F).
- :-block 'Prelude.foldr1_2_._2'(?,?,?,?,?,-,?).
- 'Prelude.foldr1_2_._2'([],A,B,C,D,E,F):-hnf(A,D,E,F).
- 'Prelude.foldr1_2_._2'([A|B],C,D,E,F,G,H):-!,makeShare(E,I),hnf('Prelude.apply'('Prelude.apply'(I,C),'Prelude.foldr1'(I,D)),F,G,H).
- 'Prelude.foldr1_2_._2'('FAIL'(A),B,C,D,'FAIL'(A),E,E):-nonvar(A).
- 'Prelude.foldr1_2'([],A,B,C,D):-!,hnf('Prelude.failure'('Prelude.foldr1',[[]]),B,C,D).
- 'Prelude.foldr1_2'('FAIL'(A),B,'FAIL'(A),C,C).
- :-block 'Prelude.filter'(?,?,?,-,?).
- 'Prelude.filter'(A,B,C,D,E):-hnf(B,F,D,G),'Prelude.filter_2'(F,A,C,G,E).
- :-block 'Prelude.filter_2'(?,?,?,-,?).
- 'Prelude.filter_2'([],A,[],B,B).
- 'Prelude.filter_2'([A|B],C,D,E,F):-!,makeShare(C,G),makeShare(A,H),hnf('Prelude.apply'(G,H),I,E,J),'Prelude.filter_2_._ComplexCase'(I,H,B,G,D,J,F).
- :-block 'Prelude.filter_2_._ComplexCase'(-,?,?,?,?,?,?),'Prelude.filter_2_._ComplexCase'(?,?,?,?,?,-,?).
- 'Prelude.filter_2_._ComplexCase'('Prelude.True',A,B,C,[A|'Prelude.filter'(C,B)],D,D).
- 'Prelude.filter_2_._ComplexCase'('Prelude.False',A,B,C,D,E,F):-!,hnf('Prelude.filter'(C,B),D,E,F).
- 'Prelude.filter_2_._ComplexCase'('FAIL'(A),B,C,D,'FAIL'(A),E,E).
- 'Prelude.filter_2'('FAIL'(A),B,'FAIL'(A),C,C):-nonvar(A).
- :-block 'Prelude.zip'(?,?,?,-,?).
- 'Prelude.zip'(A,B,C,D,E):-hnf(A,F,D,G),'Prelude.zip_1'(F,B,C,G,E).
- :-block 'Prelude.zip_1'(?,?,?,-,?).
- 'Prelude.zip_1'([],A,[],B,B).
- 'Prelude.zip_1'([A|B],C,D,E,F):-!,hnf(C,G,E,H),'Prelude.zip_1_._3'(G,A,B,D,H,F).
- :-block 'Prelude.zip_1_._3'(?,?,?,?,-,?).
- 'Prelude.zip_1_._3'([],A,B,[],C,C).
- 'Prelude.zip_1_._3'([A|B],C,D,['Prelude.(,)'(C,A)|'Prelude.zip'(D,B)],E,E):-!.
- 'Prelude.zip_1_._3'('FAIL'(A),B,C,'FAIL'(A),D,D):-nonvar(A).
- 'Prelude.zip_1'('FAIL'(A),B,'FAIL'(A),C,C):-nonvar(A).
- :-block 'Prelude.zip3'(?,?,?,?,-,?).
- 'Prelude.zip3'(A,B,C,D,E,F):-hnf(A,G,E,H),'Prelude.zip3_1'(G,B,C,D,H,F).
- :-block 'Prelude.zip3_1'(?,?,?,?,-,?).
- 'Prelude.zip3_1'([],A,B,[],C,C).
- 'Prelude.zip3_1'([A|B],C,D,E,F,G):-!,hnf(C,H,F,I),'Prelude.zip3_1_._3'(H,A,B,D,E,I,G).
- :-block 'Prelude.zip3_1_._3'(?,?,?,?,?,-,?).
- 'Prelude.zip3_1_._3'([],A,B,C,[],D,D).
- 'Prelude.zip3_1_._3'([A|B],C,D,E,F,G,H):-!,hnf(E,I,G,J),'Prelude.zip3_1_._3_._5'(I,A,B,C,D,F,J,H).
- :-block 'Prelude.zip3_1_._3_._5'(?,?,?,?,?,?,-,?).
- 'Prelude.zip3_1_._3_._5'([],A,B,C,D,[],E,E).
- 'Prelude.zip3_1_._3_._5'([A|B],C,D,E,F,['Prelude.(,,)'(E,C,A)|'Prelude.zip3'(F,D,B)],G,G):-!.
- 'Prelude.zip3_1_._3_._5'('FAIL'(A),B,C,D,E,'FAIL'(A),F,F):-nonvar(A).
- 'Prelude.zip3_1_._3'('FAIL'(A),B,C,D,'FAIL'(A),E,E):-nonvar(A).
- 'Prelude.zip3_1'('FAIL'(A),B,C,'FAIL'(A),D,D):-nonvar(A).
- :-block 'Prelude.zipWith'(?,?,?,?,-,?).
- 'Prelude.zipWith'(A,B,C,D,E,F):-hnf(B,G,E,H),'Prelude.zipWith_2'(G,A,C,D,H,F).
- :-block 'Prelude.zipWith_2'(?,?,?,?,-,?).
- 'Prelude.zipWith_2'([],A,B,[],C,C).
- 'Prelude.zipWith_2'([A|B],C,D,E,F,G):-!,hnf(D,H,F,I),'Prelude.zipWith_2_._4'(H,A,B,C,E,I,G).
- :-block 'Prelude.zipWith_2_._4'(?,?,?,?,?,-,?).
- 'Prelude.zipWith_2_._4'([],A,B,C,[],D,D).
- 'Prelude.zipWith_2_._4'([A|B],C,D,E,['Prelude.apply'('Prelude.apply'(F,C),A)|'Prelude.zipWith'(F,D,B)],G,H):-!,makeShare(E,F),G=H.
- 'Prelude.zipWith_2_._4'('FAIL'(A),B,C,D,'FAIL'(A),E,E):-nonvar(A).
- 'Prelude.zipWith_2'('FAIL'(A),B,C,'FAIL'(A),D,D):-nonvar(A).
- :-block 'Prelude.zipWith3'(?,?,?,?,?,-,?).
- 'Prelude.zipWith3'(A,B,C,D,E,F,G):-hnf(B,H,F,I),'Prelude.zipWith3_2'(H,A,C,D,E,I,G).
- :-block 'Prelude.zipWith3_2'(?,?,?,?,?,-,?).
- 'Prelude.zipWith3_2'([],A,B,C,[],D,D).
- 'Prelude.zipWith3_2'([A|B],C,D,E,F,G,H):-!,hnf(D,I,G,J),'Prelude.zipWith3_2_._4'(I,A,B,C,E,F,J,H).
- :-block 'Prelude.zipWith3_2_._4'(?,?,?,?,?,?,-,?).
- 'Prelude.zipWith3_2_._4'([],A,B,C,D,[],E,E).
- 'Prelude.zipWith3_2_._4'([A|B],C,D,E,F,G,H,I):-!,hnf(F,J,H,K),'Prelude.zipWith3_2_._4_._6'(J,A,B,C,D,E,G,K,I).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement